Sublist3r on macOS Mojave
更新履歴
- 2021.02.24
はじめに
- このドキュメントでは,高速にサブドメインを見つけるsublist3rをインストールして使ってみる.
インストール
- gitからclone
$ git clone https://github.com/aboul3la/Sublist3r🆑
Cloning into 'Sublist3r'...
remote: Enumerating objects: 383, done.
Receiving objects: 100% (383/383), 1.12 MiB | 1.33 MiB/s, done.
remote: Total 383 (delta 0), reused 0 (delta 0), pack-reused 383
Resolving deltas: 100% (213/213), done.
[macmini2014:ujpadmin 15:45:31 ~/bin ]
$
- cloneした内容をチェック.
$ cd Sublist3r/🆑
[macmini2014:ujpadmin 15:45:41 ~/bin/Sublist3r ]
$ ls -la
total 80
drwxr-xr-x 11 ujpadmin staff 352 2 24 15:45 .
drwxr-xr-x 6 ujpadmin staff 192 2 24 15:45 ..
drwxr-xr-x 12 ujpadmin staff 384 2 24 15:45 .git
-rw-r--r-- 1 ujpadmin staff 6 2 24 15:45 .gitignore
-rw-r--r-- 1 ujpadmin staff 18047 2 24 15:45 LICENSE
-rw-r--r-- 1 ujpadmin staff 49 2 24 15:45 MANIFEST.in
-rw-r--r-- 1 ujpadmin staff 5443 2 24 15:45 README.md
-rw-r--r-- 1 ujpadmin staff 28 2 24 15:45 requirements.txt
-rw-r--r-- 1 ujpadmin staff 1332 2 24 15:45 setup.py
drwxr-xr-x 6 ujpadmin staff 192 2 24 15:45 subbrute
-rwxr-xr-x 1 ujpadmin staff 36714 2 24 15:45 sublist3r.py
[macmini2014:ujpadmin 15:45:42 ~/bin/Sublist3r ]
$
- 実行してみる.
$ python sublist3r.py -d ujp.jp🆑
Traceback (most recent call last):
File "/Users/ujpadmin/bin/Sublist3r/sublist3r.py", line 23, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
[macmini2014:ujpadmin 15:46:22 ~/bin/Sublist3r ]
$
- パッケージが足りないとエラーがでた.
- requirements.txtファイルを確認.
$ cat requirements.txt🆑
argparse
dnspython
requests
[macmini2014:ujpadmin 15:46:56 ~/bin/Sublist3r ]
$
- パッケージをインストール.
$ pip install -r requirements.txt🆑
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: dnspython in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (2.1.0)
Collecting requests
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 2.4 MB/s
Collecting chardet<5,>=3.0.2
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 3.9 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
|████████████████████████████████| 147 kB 4.1 MB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.3-py2.py3-none-any.whl (137 kB)
|████████████████████████████████| 137 kB 3.6 MB/s
Collecting idna<3,>=2.5
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 4.4 MB/s
Installing collected packages: urllib3, idna, chardet, certifi, requests, argparse
Successfully installed argparse-1.4.0 certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.3
[macmini2014:ujpadmin 15:47:29 ~/bin/Sublist3r ]
$
- 自分のドメインを調査してみる.
$ python sublist3r.py -d ujp.jp🆑
____
_ _ _ _
_____
/ ___| _ _| |__ | (_)___| |_|___ / _ __
\___ \| | | | '_ \| | / __| __| |_ \| '__|
___) | |_| | |_) | | \__ \ |_ ___) | |
|____/ \__,_|_.__/|_|_|___/\__|____/|_|
# Coded By Ahmed Aboul-Ela - @aboul3la
[-] Enumerating subdomains now for ujp.jp
[-] Searching now in Baidu..
[-] Searching now in Yahoo..
[-] Searching now in Google..
[-] Searching now in Bing..
[-] Searching now in Ask..
[-] Searching now in Netcraft..
[-] Searching now in DNSdumpster..
[-] Searching now in Virustotal..
[-] Searching now in ThreatCrowd..
[-] Searching now in SSL Certificates..
[-] Searching now in PassiveDNS..
[!] Error: Virustotal probably now is blocking our requests
[-] Total Unique Subdomains Found: 2
www.ujp.jp
onamaemail1.ujp.jp
[macmini2014:ujpadmin 15:47:49 ~/bin/Sublist3r ]
$
- んー.そこまでか.
- こういうのを調べると,たくさん出てきますね...定期的にリストしてdiffすると,何か新サービスがみえてきたりしたりして.