

When attacking the file in an effort to “crack” the password you use this hash to try and find a matching known string.īy attacking the hash it saves you having to type passwords into zip file password prompt thousands of times! 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ĭepending 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. Ver 1.0 efh 54 test.zip/test.txt PKZIP Encr: 2b chk, TS_chk, cmplen=17, decmplen=5, crc=3BB935C6 With the hash we can use either John the Ripper or Hashcat to attack the hash to find the password. Using zip2john a utility packaged with John the Ripper we can extract the zip file hash. John the Ripper (a password recovery program) comes with a utility called zip2john that is used to extract the encrypted hash from the file. Try our ZIP password recovery tool here, to attempt to crack the password of an encrypted zip file. 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. Another method is the AES encryption first introduced by WinZIP and available in some software such as WinZIP and 7zip. This is not very secure as shown in the chart below and can be cracked using standard tools. The standard format for an encrypted zip file uses the ZIP2.0 format. 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). Recovery of the password can be achieved by retrieving the hash from the document and matching the hash against calculated hashes of known strings. So a strong password should be used to ensure security of the file. 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. Removal of a password from an encrypted zip file can be easy or hard depending on the complexity of the password.
