John the ripper on google Colab

2 years ago
13

!bash
lscpu
apt update
apt install gcc build-essential git zlib1g-dev libssl-dev
git clone https://github.com/magnumripper/johntheripper.git
ls ###showing the folder content###
cd ./johntheripper/src
./configure
make
make install
cd /content/johntheripper/run/
./john ###show the version###
mkdir /content/wordlist
cd /content/wordlist
https://downloads.skullsecurity.org - copy the relevent wordlist.
wget https://downloads.skullsecurity.org/passwords/rockyou.txt.bz2
bunzip2 rockyou.txt.bz2
mkdir /content/hash
cd /content/hash

***Kali***

mkdir lab
cd lab
echo 1234567890 > test.txt
zip --encrypt test.zip test.txt
zip2john test.zip > test.hash

**filebin***

cd /content/johntheripper/run
./john --list=formats | grep -i zip
./john /content/hash/test.hash --wordlist=/content/wordlist/rockyou.txt
./john /content/hash/test.hash --show
cat ./john.pot

Loading comments...