Hide and Seek!
50 points
This challenge has a zip-in download after unzipping we got lots of directories ( 1 to 100 ) then after unzipping each directory they also lot of files. So from this we got that flag is in one of the files so if we do this task manually it will very very long time and due to laziness, I adopt the same task through automating.
import os | |
os.system(“mkdir flag”) | |
for i in range(1,101): | |
os.system(f’unrar e {i}.rar ./{i}/’) | |
os.system(f’cd {i}; cat * > {i}’) | |
os.system(f”cd {i}; cp {i} ../flag/”) | |
os.system(“cd flag; cat * > flag ; cat flag”) |
FLAG
SBCTF{Y0U_H4VE_PL4Y3D_1T_W3LL}