I'm just running a test. There is a zip on my desktop, and the password is "12345". So, I already installed John the Ripper on my Ubuntu 19.04. This is what I am doing (terminal opened on the Desktop):
zip2john test.zip > hash.txt The output:
zip2john: command not found What am I doing wrong?
13 Answers
git clone "" && cd JohnTheRipper/src && ./configure && sudo make -s clean && sudo make -sj4 Then go run and try ./zip2john.
The accepted answer is not up-to-date and official. Here is copied from the official documentation:
git clone -b bleeding-jumbo john cd john/src/ ./configure make -s clean && make -sj4 To use the tools like zip2john, you can navigate to the run/ folder:
cd ../run/ ./zip2john test.zip Just an usage example.
Adding another way to use zip2john. It is included in snap version of john the ripper tested in Ubuntu 20.04. To install john:
snap install john-the-ripper After installing, use john-the-ripper.zip2john in command line. For example,
john-the-ripper.zip2john test.zip > hash Source: Reddit answer