Sinisterly
Tutorial How to unlock a password protected zip file - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Hacking Tools (https://sinister.ly/Forum-Hacking-Tools)
+--- Thread: Tutorial How to unlock a password protected zip file (/Thread-Tutorial-How-to-unlock-a-password-protected-zip-file)



How to unlock a password protected zip file - SubZ3r0 - 03-29-2016

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.

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!


RE: How to crack a password protected zip file - lux - 03-29-2016

Cracking isn't brute forcing with a dictionary


RE: How to crack a password protected zip file - DarkMuse - 03-29-2016

Despite this not being cracking, it is still fully functional code. Thanks for the share!


RE: How to crack a password protected zip file - SubZ3r0 - 03-29-2016

(03-29-2016, 01:53 AM)lux Wrote: Cracking isn't brute forcing with a dictionary

My apologies, my mannerisms use cracking as a method of obtaining a password. I was unaware that the difference was so great, but now I understand. I'll edit it, thanks for the correction!

(03-29-2016, 03:17 AM)DarkMuse Wrote: Despite this not being cracking, it is still fully functional code. Thanks for the share!

Fixed, thank you for the help!


RE: How to unlock a password protected zip file - Cyber Warrior - 03-29-2016

Nice and useful little code, good job, and keep it up.


RE: How to unlock a password protected zip file - pvnk - 03-29-2016

Wow. I'm so impressed!! Can you show me more?!


RE: How to unlock a password protected zip file - m0dem - 03-29-2016

Thanks for sharing this code!
#PythonMasterRace


RE: How to unlock a password protected zip file - SubZ3r0 - 03-30-2016

(03-29-2016, 03:35 PM)Cyber Warrior Wrote: Nice and useful little code, good job, and keep it up.

Thank you. I quite like your tutorials too. My favorites are the WiFi hacking ones.