Advertisement
foryou97

Zip

Mar 11th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import py7zlib
  2.  
  3. filename = 'what_am_i_bd6788043be8300f6f5ed298be42ed91'
  4. while True:
  5.         f = py7zlib.Archive7z(open(filename, 'rb'))
  6.         password = f.getnames()[0]
  7.         f = py7zlib.Archive7z(open(filename, 'rb'), password)
  8.         open(password,'wb').write(f.getmember(password).read())
  9.         filename = password
  10.         print filename
  11.         if filename == 'flag':
  12.                 print 'Flag:', open('flag', 'r').read()
  13.                 break
  14.  
  15. #Flag: matesctf{fin@11y_y0u_f0und_my_n@m3!}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement