git clone https://github.com/openwall/john.git
安裝代碼所需套件
sudo apt-get update
sudo apt-get install libssl-dev
sudo apt-get install build-essential
sudo apt-get install libbz2-dev
進入到src開始編譯安裝
cd john/src
編譯啟用gpu
./configure --enable-opencl
make -s clean && make -sj4
查看john有多少GPU CPU可以使用
./john --list=opencl-devices
使用4CPU 8RAM破解速度,破解五個英文小寫數字需要103小時
使用4個Tesla T4 GPU破解五個英文小寫數字只需10小時,速度快10倍(此7z檔案大小約為1G)
破解zip壓縮檔案
~/john/run/john --format=zip-opencl --mask=[mycharset.chr] --min-length=1 --max-length=12 solomon_hash.txt --devices=2,3,4,5 --fork=4
破解7z壓縮檔案
perl 7z2john.pl ~/japan.7z > japan7zhash.txt
如何遇到以下報錯代表缺少Compress::Raw::Lzma 模块
Can't locate Compress/Raw/Lzma.pm in @INC (you may need to install the Compress::Raw::Lzma module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at 7z2john.pl line 6.
BEGIN failed--compilation aborted at 7z2john.pl line 6.
需要執行以下指令安裝缺少的套件
sudo apt-get install liblzma-dev
sudo cpan Compress::Raw::Lzma
~/john/run/john --format=7z-opencl --mask=[mycharset.chr] --min-length=1 --max-length=8 /home/qoo7972365/japan7zhash.txt --devices=1,2,3,4 --fork=4
./john/run/john --mask=tim my?l?l?l?l?l --min-length=10 --max-length=10 japan7zhash.txt
Comments