ZIP File Password Recovery Online (2024)

Encrypted ZIP Removal

Removal of a password from an encrypted zip file can be easy or hard depending on the complexity of the password. Using a tool such as John the Ripper you can break out the password by matching the computed hash at a rate of millions of attempts per second. So a strong password should be used to ensure security of the file.

Recovery of the password can be achieved by retrieving the hash from the document and matching the hash against calculated hashes of known strings. This is a similar methodology to that used in cracking other hashes such as MD5 password recovery, SHA1 password recovery or even Microsoft Office document password recovery (Word doc / Excel xls).

The standard format for an encrypted zip file uses the ZIP2.0 format. This is not very secure as shown in the chart below and can be cracked using standard tools. Another method is the AES encryption first introduced by WinZIP and available in some software such as WinZIP and 7zip. The AES encrypted zip archive is much more difficult to crack open as the complexity of the computation is simply more difficult - making the cracking time significantly longer.

Try our ZIP password recovery tool here, to attempt to crack the password of an encrypted zip file.

Benchmark ZIP File Cracking (i5 CPU vs Nvidia GTX1080)

Using Hashcat Password Tool or John the Ripper to crack the zip file is the best bet. These tools can use high speed graphics processing chips (GPU) to crack the hashes faster than your even the fastest of CPUs. Even using cutting edge GPUs these passwords are difficult to recover as the algorithm is one of the strongest used in when compared to other standard document or file encryption algorithms.

In this chart it is clear to see the simplicity of the legacy ZIP 2.0 standard when compared to the AES encrypted zip file. The slower attack time for the 7zip encrypted AES file is due to the use of multiple iterations of the AES256 calculation in the 7z format.

Cracking ZIP file with Password

John the Ripper (a password recovery program) comes with a utility called zip2john that is used to extract the encrypted hash from the file.

1. Extract the Hash from the zip

Using zip2john a utility packaged with John the Ripper we can extract the zip file hash. With the hash we can use either John the Ripper or Hashcat to attack the hash to find the password.

 user@host:~$ zip2john test.zip ver 1.0 efh 5455 efh 7875 test.zip/test.txt PKZIP Encr: 2b chk, TS_chk, cmplen=17, decmplen=5, crc=3BB935C6 test.zip/test.txt:$pkzip2$1*2*2*0*11*5*3bb935c6*0*42*0*11*3bb9*7ea9*f0728c57843209fbe14dcf4f7f46661068*$/pkzip2$:test.txt:test.zip::test.zip 

Depending on the zip compression program used the strength of the cipher and format of the zip2john output may be different to what you see in the example above.

2. John the Ripper and ZIP Files

This hash is the key to the file. When attacking the file in an effort to “crack” the password you use this hash to try and find a matching known string.

By attacking the hash it saves you having to type passwords into zip file password prompt thousands of times!

john will detect the format of the hash and start checking for passwords using a simple command line as shown below.

 user@host:~$ zip2john test.zip > test.hash user@host:~$ john test.hash Using default input encoding: UTF-8 Loaded 1 password hash (PKZIP [32/64]) Will run 4 OpenMP threads Proceeding with single, rules:Single Press 'q' or Ctrl-C to abort, almost any other key for status Warning: Only 3 candidates buffered for the current salt, minimum 8 needed for performance. Warning: Only 7 candidates buffered for the current salt, minimum 8 needed for performance. Warning: Only 3 candidates buffered for the current salt, minimum 8 needed for performance. Almost done: Processing the remaining buffered candidate passwords, if any. Warning: Only 5 candidates buffered for the current salt, minimum 8 needed for performance. Proceeding with wordlist:/snap/john-the-ripper/current/run/password.lst, rules:Wordlist password (test.zip/test.txt) 1g 0:00:00:00 DONE 2/3 (2022-01-14 11:08) 20.00g/s 606380p/s 606380c/s 606380C/s 123456..ferrises Use the "--show" option to display all of the cracked passwords reliably Session completed 

Using a custom wordlist with John is a simple command line argument.

user@host:~$ john test.hash -wordlist=rockyou.txt

3. Hashcat and ZIP Files

As with the john example above we first need to extract the hash from the file. Use zip2john the same as above. Then redirect to a file and edit the file to remove the first characters up to to first $. The file should like the example below.

$pkzip2$1*2*2*0*14*8*db5c50fc*0*46*0*14*db5c*59b2*1d8f608cc212d947bee8bdf5eefc17d78392af66*$/pkzip2$:test-txt.txt:test-zip-weak.zip::test-zip-weak.zip

Now we will use hashcat to try and guess the password for this hash. There are a number of formats for zip2 / pkzip etc. Depending on the program used to encrypt you may need to try different hashcat modes.

hashcat --help | grep -i zip will show the modes for the different formats. Note that you should be using hashcat 6.1+ or a more recent version to ensure you are maximising your password cracking capability.

In the example test.john is the file that contains the zip file hash extracted using the zip2john utility.

 (vagrant㉿kali)$ hashcat -m 17210 test.john rockyou.txt hashcat (v6.1.1) starting... OpenCL API (OpenCL 1.2 pocl 1.6, None+Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project] ========================================================================================================================== * Device #1: pthread-Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz, 2884/2948 MB (1024 MB allocatable), 2MCU Minimum password length supported by kernel: 0 Maximum password length supported by kernel: 256 Hashes: 1 digests; 1 unique digests, 1 unique salts Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates Rules: 1 Applicable optimizers applied: * Not-Iterated * Single-Hash * Single-Salt Watchdog: Hardware monitoring interface not found on your system. Watchdog: Temperature abort trigger disabled. Host memory required for this attack: 64 MB [s]tatus [p]ause [b]ypass [c]heckpoint [q]uit => Dictionary cache building roDictionary cache built: * Filename..: rockyou.txt * Passwords.: 14344392 * Bytes.....: 139921507 * Keyspace..: 14344385 * Runtime...: 1 sec $pkzip2$1*2*2*0*14*8*db5c50fc*0*46*0*14*db5c*59b2*1d8f608cc212d947bee8bdf5eefc17d78392af66*$/pkzip2$:password Session..........: hashcat Status...........: Cracked Hash.Name........: PKZIP (Uncompressed) Hash.Target......: $pkzip2$1*2*2*0*14*8*db5c50fc*0*46*0*14*db5c*59b2*1...kzip2$ Time.Started.....: Wed Feb 9 21:00:25 2022 (0 secs) Time.Estimated...: Wed Feb 9 21:00:25 2022 (0 secs) Guess.Base.......: File (rockyou.txt) Guess.Queue......: 1/1 (100.00%) Speed.#1.........: 33625 H/s (0.16ms) @ Accel:1024 Loops:1 Thr:1 Vec:8 Recovered........: 1/1 (100.00%) Digests Progress.........: 2048/14344385 (0.01%) Rejected.........: 0/2048 (0.00%) Restore.Point....: 0/14344385 (0.00%) Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1 Candidates.#1....: 123456 -> lovers1 Started: Wed Feb 9 21:00:01 2022 Stopped: Wed Feb 9 21:00:27 2022 

The password list used is the rockyou.txt dictionary. You can see from the output we achieved about 33000 hashes per second using an i7-6700 CPU. Not great, we would definitely want to use a GPU for a serious password attack.

Password Protect Files on Windows and Linux

Password protect ZIP file in Windows

Windows comes with a builtin ability to extract and compress files using the ZIP format. These will be accessible using other third part ZIP extract programs on Linux, Windows or Mac based systems. However, there is no option to add a password to the zip file on Windows using the default functionality. You can encrypt the file using builtin encryption tools but this is not the same as the standard ZIP file password protection. To do this we will need to use a third party program such as WinZIP, 7zip or WinRAR.

Password Protect ZIP File with Ubuntu using Command Line

Using the standard zip program in Ubuntu Linux we can add a password to a newly created zip file very easily. If the command line zip is not installed use the apt install command and then run the following. You will be prompted for the password.

user@test:~/$ sudo apt install zipuser@test:~/$ zip -e myzip.zip myfile.txt

Alternatively there is an open source version of 7zip that can be installed from the Ubuntu package manager.

user@test:~/$ sudo apt install p7zipuser@test:~/$ 7za a -tzip -p -mem=AES256 myzip.zip myfile.txt
ZIP File Password Recovery Online (2024)

FAQs

How to unzip a password protected zip file? ›

How to Extract Password Protected Zip Files with Password
  1. Open the protected file in WinRAR and enter your password.
  2. Then, set an extraction path option for your file by clicking "Extract To".
  3. You can start the extraction process now. 💡You may also be interested in this post if you are using WinRAR:
Jun 21, 2024

How to open password protected zip file without password in Android? ›

Step-by-Step Guide to Extracting Password Protected Zip Files
  1. Install the chosen data extraction tool from the Google Play Store.
  2. Launch the extraction tool and navigate to the location of the password protected zip file.
  3. Select the file and initiate the extraction process.
Apr 26, 2024

What is the best software to recover zip passwords? ›

Top ZIP Password Recovery Tools Comparison
Product NameAttack TypesAccessibility
eSoft ToolsBrute-force, Mask, DictionaryOffline (Windows)
LostMyPassBrute-forceOnline (All platforms)
AsposeBrute-forceOnline (All platforms)
iFindPassBrute-forceOnline (All platforms)
4 more rows
Apr 30, 2024

Why is my ZIP file asking for a password? ›

In some cases, when you attempt to unzip files from (extract) or view files in a Zip file (. zip or . zipx) a Decrypt dialog will display requesting a password. This indicates that the files in your Zip file have been encrypted.

How do I open a password-protected file? ›

When you attempt to open a protected file, you will need to enter one or more passwords and supply other information, such as an account name, in order to open the file. You may also be able to open the file by using Guest Access if privileges for the file are configured to permit it.

Does Windows support password-protected zip? ›

Can you put a password on a zip file? Windows doesn't have an option to protect your zipped file with a password, so there's no other way but to use third-party tools. You can choose from various trusted software options, such as WinZip, WinRAR(read more about safely using WinRAR), and 7-Zip.

How secure is a password-protected zip file? ›

Passwords-encrypted zip files are considered in the industry to be relatively simple to crack. Unlike website logins, encrypted zip files are easy for cybercriminals to access because unlimited password attempts are allowed.

What is zip password cracker free for Android? ›

iFindPass ZIP Password Cracker is a tool that can help users regain access to their password-encrypted files such as ZIP/WINZIP/7ZIP/PKZIP. It combines hybrid Brute-force and Dictionary attacks, making the cracking speed unparalleled.

How to open password files in Android? ›

Use Unlock App: If you have a file that is encrypted, you will need to use an Android unlock app to share the file. Simply install the app from the Google Play store and sign up to create an account.

Is it possible to recover ZIP file password? ›

The easiest and most efficient way to recover forgotten ZIP file passwords is to use a professional password recovery tool. One of the best password recovery tools in the market today is the Passper for ZIP.

Is there a free software to recover passwords? ›

A well-known name in the password recovery business, Ophcrack is one of the best freeware solutions available. It's designed for average users with little knowledge of cracking passwords, so even novices can follow the simple step-by-step instructions. There's no need to install Ophcrack on a separate device.

What is the best free password recovery software for Android? ›

LogMeOnce is an excellent solution that can help you out. LogMeOnce is a free account management system for Android phones and tablets. With features like automatic password rotation and encrypted password locker, LogMeOnce provides a perfect password recovery tool for Android devices.

How do I open a ZIP file that won't open? ›

Right-click on the zip file and choose Open with... Select Windows Explorer. If Windows Explorer is not an option, select Choose default program... and select Windows Explorer, then click OK. Click Extract all files at the top of the window or in the sidebar.

How do I unlock a ZIP file on my laptop? ›

Extract/Unzip Zipped Files

Right-click the zipped folder saved to your computer. Choose "Extract All..." (an extraction wizard will begin). Click [Next >]. Click [Browse...] and navigate to where you would like to save the files.

Do you need a password for ZIP file? ›

Adding a password to your zip file secures the contents. It can help to prevent data leaks from cyberattacks. Use Windows Explorer, Mac Terminal, Keka, EFS, WinRAR, or 7-Zip to add a password to your zip file. Zip files are a good idea when you need to send large amounts of information and want faster transfers.

How do I reopen a ZIP file? ›

To decompress files
  1. Open File Explorer and find the compressed folder.
  2. To unzip the entire folder, right-click to select Extract All, and then follow the instructions. You can also select Extract All from the command ribbon.
  3. To decompress a single file or folder, double-click the compressed folder to open it.

Top Articles
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 5731

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.