HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

zip2john — Extract password hashes from Zip archives for use with John the Ripper password cracker. This is a u

Submitted by: @import:tldr-pages··
0
Viewed 0 times
extractcommandpasswordfromclizip2johnhasheszip

Problem

How to use the zip2john command: Extract password hashes from Zip archives for use with John the Ripper password cracker. This is a utility tool usually installed as part of the John the Ripper installation. More information: <https://www.openwall.com/john/>.

Solution

zip2john — Extract password hashes from Zip archives for use with John the Ripper password cracker. This is a utility tool usually installed as part of the John the Ripper installation. More information: <https://www.openwall.com/john/>.

Extract the password hash from an archive, listing all files in the archive:
zip2john {{path/to/file.zip}}


Extract the password hash using [o]nly a specific compressed file:
zip2john -o {{path/to/compressed_file}} {{path/to/file.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}} {{path/to/file.zip}} > {{file.hash}}

Code Snippets

Extract the password hash from an archive, listing all files in the archive

zip2john {{path/to/file.zip}}

Extract the password hash using [o]nly a specific compressed file

zip2john -o {{path/to/compressed_file}} {{path/to/file.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}} {{path/to/file.zip}} > {{file.hash}}

Context

tldr-pages: common/zip2john

Revisions (0)

No revisions yet.