目指せホワイトハッカー

目指せホワイトハッカー

ホワイトハッカーを目指し勉強中であり、自分の頭の整理のために纏めるのが主目的。ホワイトハッカー以外にも気が向いたら徒然なるままに。

Kali linuxでfindmyhash エラー時に試した方法

Kali linuxでfindmyhashが失敗した時に試した方法 備忘録


環境

PC:Kali linux 2020.1

エラー内容と対策

bash: findmyhash: command not found

・findmyhashの取得

git clone https://gitlab.com/kalilinux/packages/findmyhash
cd ./findmyhash
sudo python findmyhash_v1.1.2.py MD5 -h e99a18c428cb38d5f260853678922e03

The Python library httplib2 is not installed in your system

・httplib2の取得&インストール

git clone https://github.com/jcgregorio/httplib2
cd ./httplib2
sudo python2 setup.py install
sudo python findmyhash_v1.1.2.py MD5 -h e99a18c428cb38d5f260853678922e03
sudo python3 setup.py install では、変わらずThe Python library httplib2 is not installed in your systemとなるのでsudo python2 setup.py installを実行すること

The Python library libxml2 is not installed in your system.

・libxml2 の取得&インストール

wget -P ~/src ftp://xmlsoft.org/libxml2/libxml2-2.9.10.tar.gz
cd ~/src
tar xzf libxml2-2.9.10.tar.gz
cd libxml2-2.9.10
./configure --prefix=/home/kali
make
sudo make install
sudo python findmyhash_v1.1.2.py MD5 -h e99a18c428cb38d5f260853678922e03

結果

エラーは出なくなりましたが、ハッシュに相当するパスワードはヒットしませんでした。
findmyhash_v1.1.2.pyが7年前のソースと古く、URL自体が存在しない、もしくはハッシュ投げ方や受け取り方が変更されており、findmyhash_v1.1.2.py の中身自体をいじる必要がありそうです。


代替手段

素直に、以下のWebサービスを利用したほうがよさそうです。
crackstation.net
www.md5online.org