KaliLinuxで多くのソーシャルメディアからユーザ名を発見する「Sherlock」をインストールする

スポンサーリンク

KaliLinux2021.1で多くのソーシャルメディアからユーザ名を発見する「Sherlock」のインストールについて解説しています。

Sherlock(シャーロック)は、多くのソーシャルネットワーク(メディア)からユーザ名を見つけるための非常に強力なコマンドラインツールです。なお、GitHubで公開されているフリーのオープンソースツールで、無料でGithubからダウンロードすることができます。使用に関しても無料で使用することができます。

動作については、Python 3.6以上が必要で、MacOSLinuxWindowsで動作可能となっています。

今回は、あくまでサイバーセキュリティの実験&検証目的のインストールですので、悪用が目的ではありません。

■PC環境

Windows 10 Pro

VirtualBox6.1

Kali Linux 2021.1(Debian (64-bit))

■Kali Linuxを起動する

クリックすると、Kali Linuxが起動します。起動後、ログイン画面が表示されますのでユーザIDとパスワードを入力し「Log in」ボタンをクリックします。

クリックすると、Kali Linuxにログインすることができました。

ログイン後、上部メニューになる「ターミナルエミュレーター」をクリックし、ターミナルを起動します。

$sudo su

起動後、上記のコマンドを入力し、Enterキーを押します。スーパーユーザ(root)権限に切り替えます。

sherlockのインストール

#git clone https://github.com/sherlock-project/sherlock.git

切り替えた後に、上記のコマンドを入力し、Enterキーを押します。リポジトリをクローンします。

Cloning into 'sherlock' ...
remote: Enumerating_objects: 5084, done.
remote: Total 5084 (delta 0), reused o (delta 6), pack-reused 5084
Receiving objects: 100% (5084/5084), 15.49 MiB 2.67 MiB/s, done.
Resolving deltas: 100% (3215/3215), done.

しばらくすると、クローンが完了となります。

#cd sherlock

完了後、上記のコマンドを入力し、Enterキーを押します。cdコマンドで「sherlock」のディレクトリに移動します。

#pip3 install -r requirements.txt

移動後、上記コマンドを入力し、Enterキーを押しますが、python3とpython3-pipを事前にインストールしておく必要があります。

Collecting requests-futures > 1.0.0 Downloading requests-futures-1.0.0.tar.gz (10 kB) Requirement already satisfied: soupsieve 1.9.2 in /usr/lib/python3/dist-packages (from -r requir ements.txt (line 9)) (2.1) Requirement already satisfied: stem > 1.8.0 in /usr/lib/python3/dist-packages (from -r requirement s.txt (line 10) (1.8.0) Collecting torrequest> 0.1.0 Downloading torrequest-0.1.0.tar.gz (1.5 kB) Building wheels for collected packages: bs4, requests-futures, torrequest Building wheel for bs4 (setup.py) ... done, Created wheel for bs4: filename=bs 4-0.0.1-py3-none-any.whl size=1272 sha256=d2b41de0b7a333d3a38 80bd43a4fb7d47cacee6404b8814cbb40485ea51ce731 Stored in directory: /root/.cache/pip/wheels/73/2b/cb/099980278a%c9a3e57ff1a89875ec07bfa6b6fcbe bb9a8cad3 Building wheel for requests-futures (setup.py) ... done Created wheel for requests-futures: filename=requests futures-1.0.0-py3-none-any.whl size=7013 sha256=c4ff6705d04d3923a45ee4bf2e474280404df9a999303b88fe6c4f00a5db3b75 Stored in directory: /root/.cache/pip/wheels/1f/a4/44/eccb2d0ac3378d61109853b98c52c2911cb9d97e1 1c87e5f3d Building wheel for torrequest (setup.py) ... done Created wheel for torrequest: filename=torrequest-0.1.0-py3-none-any.whl size=1903 sha256=791bc 690b0119898599062a3bc46eb2a858be128cba957434a2ab3c75cd072b9 Stored in directory: /root/.cache/pip/wheels/8d/59/f5/21ab670ace7e28254b1a4e13c62df1708665f2654 8b7d29b53 Successfully built bs4 requests-futures torrequest Installing collected packages: torrequest, requests-futures, bs4 Successfully installed bs4-0.0.1 requests-futures-1.0.0 torrequest-0.1.0

Enterキーを押すと、「sherlock」を起動するために必要なものがインストールされます。インストール後、しばらくすると「Successfully built」、「Installing collected packages」と表示されれば、正常にインストールは完了となります。

■インストールの確認

#python3 sherlock --help

完了後、インストールの確認のために、上記のコマンドを入力し、Enterキーを押します。「sherlock」のヘルプを表示させてみます。

Enterキーを押すと、上記のように出力されます。「Sherlock: Find Usernames Across Social Networks (Version 0.14.0),」と表示されていますので、Sherlockのバージョン0.14.0がインストールされていることが確認できます。