Forrest logo
back to the zip2john tool

zip:tldr:f8d16

zip: Extract the password hash from a compressed file to a specific file (for use with John the Ripper).
$ zip2john -o ${path-to-compressed_file} ${filename-zip} > ${file-hash}
try on your machine

The given command is used to generate the hash of a specified compressed file using the zip2john tool and save it in a file.

Here's a breakdown of each component in the command:

  • zip2john: It is a tool used to extract password hashes from zip files.

  • -o ${path-to-compressed_file}: This is an option in the command, which specifies the path to the compressed file. You need to replace ${path-to-compressed_file} with the actual path to the file you want to extract the password hash from.

  • ${filename-zip}: This is a placeholder for the name of the compressed file. Replace ${filename-zip} with the actual file name.

  • >: The greater-than symbol is used for output redirection, which means the output of the command will be saved into a file.

  • ${file-hash}: This is a placeholder for the name of the file where the hash will be stored. You can replace ${file-hash} with the desired file name.

To use this command, you need to replace the placeholders with the appropriate values for your specific scenario. Once executed, it will generate the hash of the specified compressed file and save it in the provided file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the zip2john tool