zip2john

A tool to extract password hashes from zip files 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/>.

Install

All systems
curl cmd.cat/zip2john.sh
Debian Debian
apt-get install john
Ubuntu
apt-get install john
Alpine
apk add john
Arch Arch Linux
pacman -S john
image/svg+xml Kali Linux
apt-get install john
Fedora
dnf install john
Windows (WSL2)
sudo apt-get update sudo apt-get install john
OS X
brew install john
Raspbian
apt-get install john
Docker
docker run cmd.cat/zip2john zip2john powered by Commando

A tool to extract password hashes from zip files 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

© tl;dr; authors and contributors