Forrest logo
back to the zip2john tool

zip:tldr:c3789

zip: Extract the password hash using [o]nly a specific compressed file.
$ zip2john -o ${path-to-compressed_file} ${filename-zip}
try on your machine

The command "zip2john" is used to extract the hash from a password-protected ZIP file. Here's a breakdown of the command:

  • "zip2john" is the main command used to execute the "zip2john" utility.
  • "-o" is an option that specifies the output file where the extracted hash will be saved.
  • "${path-to-compressed_file}" is a placeholder for the actual path to the ZIP file you want to extract the hash from.
  • "${filename-zip}" is a placeholder for the name of the ZIP file.

To use this command, you need to replace "${path-to-compressed_file}" with the actual path to the ZIP file you're interested in and "${filename-zip}" with the name of the ZIP file. The extracted hash will be saved in the specified output 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