How to unlock a password protected zip file 03-29-2016, 01:15 AM
#1
Hey Sinisterly. I wrote a script that uses a dictionary of your choosing to brute force the selected zip file. If you have any problems or questions let me know, I'll mess around with the code.
Enjoy!
Code:
#!/usr/bin/python
#Locked File Cracker
import zipfile
import os
os.system('clear')
print("#####################################")
print("# Locked File Unlocker #")
print("# For Sinister.ly #")
print("#####################################\n")
protected = raw_input("File to Decode: ")
dictionary = raw_input("Password File: ")
print("\nFinding password...")
pwFile = zipfile.ZipFile(protected)
passFile = open(dictionary)
for line in passFile.readlines():
password = line.strip('\n')
try:
pwFile.extractall(pwd=password)
print '\n[+] Password = ' + password + '\n'
exit(0)
except Exception, e:
pass
Enjoy!