Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from zipfile import ZipFile
  2.  
  3. for a in range(0,1000):
  4. try:
  5. x = str(a)
  6. while len(x)<3:
  7. x="0"+x
  8. with ZipFile('/tmp/alien-zip-2092.zip') as zf:
  9. zf.extractall('/tmp/',pwd=str(x))
  10. except Exception as ex:
  11. if ex[0] != 'Bad password for file':
  12. print x, ex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement