How To Crack Password Protected Zip, Rar and Pdf files using ZYDRA Tool
How To Crack Password Protected Zip, Rar and Pdf files using ZYDRA Tool
Hey there!!
Installation steps
As usual updating the system
$ sudo apt-get update
Make sure python3 is in your system.
Now clone the git repo as
git clone https://github.com/hamedA2/Zydra.git
OR
git clone https://github.com/hamedA2/Zydra
Now moving into Zydra's directory
$ cd Zydra
Now install some python modules before using the script
$ pip3 install py-term
$ pip3 install rarfile
(if you wanna crack rar file this module is necessary)
$ pip3 install zipfile
(this module is used for zip files)
$ sudo apt install qpdf
(for running script on a pdf file)
$ pip3 install pyfiglet
But install all of these before using the tool
You'll not face any error.
Now let's see to encrypt a zip file
$ zip -e p_protected.zip
nocturnal.txt
-e (for encryption of files)
p_protected.zip (new encrypted file name you could give as you wish)
nocturnal.txt (file name you wanna encrypt)
After the command it'll ask for password
Try with a simple password first for testing the tool.
Move your encrypted file into same folder
i.e. into Zydra's folder
Working with tool
$ python3 Zydra.py -h
Above step will get commands to run attacks.
For running brute force attack on a file
$ python3 Zydra.py -f p_protected.zip -b digits,letters -m 1 -x 8
Here -f is your protected file
-b is your character type which you want to include like letters digits symbols whatever just separate them by comma(,)
-m is for number of minimum characters
-x is for maximum number of characters
For running a particular password lists
$ python3 Zydra.py -f p_protected.zip -d dutch_wordlist.txt
Here -d specifies the list you wanna run on a file.
For getting password lists check this project on github
https://github.com/danielmiessler/SecLists/tree/master/Passwords
It contains passwords from different sources.
The file is too big to download at once , download it in parts as required.
NOTE: IT'S JUST FOR INFORMATION PURPOSE. NO EVIL INTENTIONS .
So give it a try
And if you get stuck somewhere let me know in comments or hit my mailbox.