LinuxCommandLibrary

zip2john

A tool to extract password hashes from zip files for use with John the Ripper password cracker.

TLDR

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

$ zip2john [path/to/file.zip]
copy


Extract the password hash using [o]nly a specific compressed file
$ zip2john -o [path/to/compressed_file] [path/to/file.zip]
copy


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]
copy

Copied to clipboard