ZIP / RAR パスワード 解読

John the Ripper でZIPファイルやRARファイルのパスワードを解読

John the Ripper のインストール

github.com

git clone https://github.com/magnumripper/JohnTheRipper.git
cd JohnTheRipper/src
./configure && make clean && make -sj4

ハッシュ値の計算

ディレクトリを JohnTheRipper/run に移動

cd ../run

ZIPであれば

./zip2john 【zipファイル】 > hash.txt

RARであれば

./rar2john 【rarファイル】 >hash.txt

パスワード解読

ハッシュの入ったファイルを読み込ませるだけ

./john hash.txt