Question
Crack a zip file using Python I am trying to crack a password on a zip file. I wrote the code in a .py file.
Crack a zip file using Python
I am trying to crack a password on a zip file. I wrote the code in a .py file.
import zipfile import optparse from threading import Thread def extractFile(zFile, password): try: zFile.extractall(pwd=password) print '[+] Found password ' + password + ' ' except: pass def main(): parser = optparse.OptionParser("usage%prog "+\ "-f
I tried using the following command in the command prompt to execute the code to crack the password, and it keeps giving me a syntax error :
unzip.py -f (my zip file name) -d (my dictionary list file name)
Am I improperly executing the code?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started