promo task BI.ZONE CTF |
try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r_try_h4rd3r
.7z
, , 32-x 7-Zip. : zipbomb.exe
ZIP-. .zip, , "-" 38,1 (40 959 016 020 ). , . Python, .def read_in_chunks(file_object, chunk_size=1024):
while True:
data = file_object.read(chunk_size)
if not data:
break
yield data
def read_in_chunks(file_object, chunk_size=1024):
while True:
data = file_object.read(chunk_size)
if not data:
break
yield data
f = open('-')
for piece in read_in_chunks(f):
if piece.count("0") < 1023:
print(piece)
/solve <>
flag
. : Sorry all flags are gone.