![]() ![]() Print("Total passwords to test:", n_words) N_words = len(list(open(wordlist, "rb"))) # Count the number of words in this word list To read the zip file in Python, use the zipfile.ZipFile class, which has methods to open, read, write, close, list and extract the zip file (here only use the extractall() method) # Initialize Zip file object Let's specify the target zip file and the word list path: # The password list path to use must be available in the current directory Open a new Python file and do the following: import zipfile The download will be completed in the following codebook. If you are using Kali Linux, you can find it in the path of / usr/share/wordlists/. We will use a larger rockyou word list (about 133MB in size). This means that we will need a word list to brute force the password protected zip file. The method of cracking is the same, violent cracking. We will use Python's built-in zipfile module and the third-party tqdm library to quickly print progress bars pip install tqdm We need to try to use the word list in Kali Linux to crack the password of the zip file, and the success rate can reach about 70%( I can't say 100% here, because the success rate of cracking in Kali can't reach 100%.) For a person who has used Kali, in fact, writing a simple Python script can quickly solve the problem. ![]() To decompress again, you need to enter the password you set before. I believe we all know that when setting the compressed file, you can set the password, which allows zip or rar compressed package to add the password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |