
Sudomyは、サブドメインを収集し、自動化された偵察(recon)を実行してドメインを分析するためのサブドメイン列挙ツールで、バグハンティングやペネトレーションテストに使用されます。
Sudomy は、サブドメインの収集と、高度な自動偵察(フレームワーク)を実行するドメインの分析を行うサブドメイン列挙ツールです。このツールはOSINT(オープンソースインテリジェンス)活動にも使用できます。
アクティブメソッド
パッシブメソッド
第三者サイト/リソースを評価して選択することで、列挙プロセスを最適化できます。より短い時間でより多くの結果を得ることができます。Sudomy は、これら厳選された22の第三者サイトからデータを収集できます:
https://censys.io
https://developer.shodan.io
https://dns.bufferover.run
https://index.commoncrawl.org
https://riddler.io
https://api.certspotter.com
https://api.hackertarget.com
https://api.threatminer.org
https://community.riskiq.com
https://crt.sh
https://dnsdumpster.com
https://docs.binaryedge.io
https://securitytrails.com
https://graph.facebook.com
https://otx.alienvault.com
https://rapiddns.io
https://spyse.com
https://urlscan.io
https://www.dnsdb.info
https://www.virustotal.com
https://threatcrowd.org
https://web.archive.org
sudomyの動作方法または偵察フロー。最適な引数を使用してサブドメインを収集し、自動偵察によって分析する方法。
root@maland: ./sudomy -d bugcrowd.com -dP -eP -rS -cF -pS -tO -gW --httpx --dnsprobe -aI webanalyze -sS
この偵察ワークフロー Sudomy v1.1.8#dev

ファイル偵察とジュージーデータの詳細情報
------------------------------------------------------------------------------------------------------
- subdomain.txt -- サブドメインリスト < $DOMAIN (ターゲット)
- httprobe_subdomain.txt -- サブドメインの検証 < subdomain.txt
- webanalyzes.txt -- テクノロジースキャンの識別 < httprobe_subdomain.txt
- httpx_status_title.txt -- タイトル+ステータスコード+長さ < httprobe_subdomain.txt
- dnsprobe_subdomain.txt -- サブドメインの解決 < subdomain.txt
- Subdomain_Resolver.txt -- サブドメインの解決(代替) < subdomain.txt
- cf-ipresolv.txt -- Cloudflare スキャン < ip_resolver.txt
- Live_hosts_pingsweep.txt -- ライブホストチェック < ip_resolver.txt
- ip_resolver.txt -- IP 解決リスト < Subdomain_Resolver::dnsprobe
- ip_dbasn.txt -- ASN番号チェック < ip_resolver.txt
- vHost_subdomain.txt -- バーチャルホスト(IPでグループ化) < Subdomain_Resolver.txt
- nmap_top_ports.txt -- アクティブポートスキャン < cf-ipresolv.txt
- ip_dbport.txt -- パッシブポートスキャン < cf-ipresolv.txt
------------------------------------------------------------------------------------------------------
- Passive_Collect_URL_Full.txt -- すべてのURLクロールの完全版(WebArchive、CommonCrawl、UrlScanIO)
------------------------------------------------------------------------------------------------------
- ./screenshots/report-0.html -- スクリーンショットレポート < httprobe_subdomain.txt
- ./screenshots/gowitness/gowitness.sqlite3 -- データベーススクリーンショット < httprobe_subdomain.txt
------------------------------------------------------------------------------------------------------
- ./interest/interesturi-allpath.out -- 興味深いパス(/api,/git,etc) < Passive_Collect_URL_Full.txt
- ./interest/interesturi-doc.out -- 興味深いドキュメント (doc,pdf,xls) < Passive_Collect_URL_Full.txt
- ./interest/interesturi-otherfile.out -- その他のファイル (.json,.env,etc) < Passive_Collect_URL_Full.txt
- ./interest/interesturi-js.out -- すべてのJavaScriptファイル(*.js) < Passive_Collect_URL_Full.txt
- ./interest/interesturi-nodemodule.out -- /node_modules/ からのファイル < Passive_Collect_URL_Full.txt
- ./interest/interesturi-param-full.out -- 完全なパラメータリスト < Passive_Collect_URL_Full.txt
- ./interest/interesturi-paramsuniq.out -- 完全なユニークパラメータリスト < Passive_Collect_URL_Full.txt
- 注: urlprobeまたはhttpxを使用してジュージー/関心のあるURL/パラメータを検証し、誤検出を回避できます。
------------------------------------------------------------------------------------------------------
- ./takeover/CNAME-resolv.txt -- CNAME リゾルバ < subdomain.txt
- ./takeover/TakeOver-Lookup.txt -- DNSLookup < CNAME-resolv.txt
- ./takeover/TakeOver-nxdomain.txt -- その他のサードパーティサービスプラットフォーム < TakeOver-Lookup.txt
- ./takeover/TakeOver.txt -- 脆弱性チェック < CNAME-resolv.txt
------------------------------------------------------------------------------------------------------
- ./wordlist/wordlist-parameter.lst -- パラメータワードリストの生成 < Passive_Collect_URL_Full.txt
- ./wordlist/wordlist-pathurl.lst -- パスワードリストの生成 < Passive_Collect_URL_Full.txt
- 注: このワードリストはドメインとサブドメインの情報(パス、ファイル、クエリ文字列、パラメータ)に基づいています。
------------------------------------------------------------------------------------------------------
Sudomyはリソース(第三者サイト)を使用する際に、より少ないリソースを最小化します。良い第三者サイト/リソースを評価して選択することで、列挙プロセスを最適化できます。この比較で使用されるドメインは tiket.com です。
以下は、Sublist3r v1.1.0、Subfinder v2.4.5、および Sudomy v1.2.0 のパッシブDNS列挙テストの結果です。
ここでは、subfinderはかなりのリソースを活用してサブドメインを収集するのに非常に高速であると分類されています。特に使用されるリソースが最適化されている場合(?)。
コンパイル結果とビデオはこちらで確認できます:
空き時間があれば。将来的には、sudomyもgolangを使用するかもしれません。貢献したい場合は、プルリクエストを受け付けています。
Sudomy は現在以下のツールで拡張されています。インストールと使用方法の説明は以下にリンクされています。
# Clone this repository
git clone --recursive https://github.com/screetsec/Sudomy.git
$ python3 -m pip install -r requirements.txt
Sudomy の実行と解析には jq と GNU grep が必要です。jqのダウンロードとインストール方法については こちら を参照してください。
# Linux
apt-get update
apt-get install jq nmap phantomjs npm chromium parallel
npm i -g wappalyzer wscat
# Mac
brew cask install phantomjs
brew install jq nmap npm parallel grep
npm i -g wappalyzer wscat
# Note
All you would need is an installation of the latest Google Chrome or Chromium
Set the PATH in rc file for GNU grep changes
# Pull an image from DockerHub
docker pull screetsec/sudomy:v1.2.1-dev
# Create output directory
mkdir output
# Run an image, you can run the image on custom directory but you must copy/download config sudomy.api on current directory
docker run -v "${PWD}/output:/usr/lib/sudomy/output" -v "${PWD}/sudomy.api:/usr/lib/sudomy/sudomy.api" -t --rm screetsec/sudomy:v1.1.9-dev [argument]
# or define API variable when executed an image.
docker run -v "${PWD}/output:/usr/lib/sudomy/output" -e "SHODAN_API=xxxx" -e "VIRUSTOTAL=xxxx" -t --rm screetsec/sudomy:v1.1.9-dev [argument]
APIキーは、Shodan、Censys、SecurityTrails、Virustotal、および BinaryEdge などの第三者サイトにクエリを実行する前に必要です。
# Shodan
# URL : http://developer.shodan.io
# Example :
# - SHODAN_API="VGhpc1M0bXBsZWwKVGhmcGxlbAo"
SHODAN_API=""
# Censys
# URL : https://search.censys.io/register
CENSYS_API=""
CENSYS_SECRET=""
# Virustotal
# URL : https://www.virustotal.com/gui/
VIRUSTOTAL=""
# Binaryedge
# URL : https://app.binaryedge.io/login
BINARYEDGE=""
# SecurityTrails
# URL : https://securitytrails.com/
SECURITY_TRAILS=""
Slack通知を使用する前にYOUR_WEBHOOK_URLが必要です。
# Configuration Slack Alert
# For configuration/tutorial to get webhook url following to this site
# - https://api.slack.com/messaging/webhooks
# Example:
# - YOUR_WEBHOOK_URL="https://hooks.slack.com/services/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"
YOUR_WEBHOOK_URL="https://hooks.slack.com/services/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"
___ _ _ _
/ __|_ _ __| (_)(_)_ __ _ _
\__ \ || / _ / __ \ ' \ || |
|___/\_,_\__,_\____/_|_|_\_, |
|__/ v{1.2.1#dev} by @screetsec
Sud⍥my - 高速サブドメイン列挙と分析
http://github.com/screetsec/sudomy
Usage: sud⍥my.sh [-h [--help]] [-s[--source]][-d[--domain=]]
Example: sud⍥my.sh -d example.com
sud⍥my.sh -s Shodan,VirusTotal -d example.com
Best Argument:
sudomy -d domain.com -dP -eP -rS -cF -pS -tO -gW --httpx --dnsprobe -aI webanalyze --slack -sS
Optional Arguments:
-a, --all すべての列挙を実行(nmapとgobusterなし)
-b, --bruteforce Gobusterを使用したサブドメインブルートフォース(ワードリスト:すべてのトップSecList DNS)
-d, --domain スキャンするウェブサイトのドメイン
-h, --help このヘルプメッセージを表示
-o, --outfile 完了時に出力ファイルを指定
-s, --source サブドメイン列挙に使用するソース
-aI, --apps-identifier ウェブサイト上のテクノロジーを識別(例:-aI webanalyze)
-dP, --db-port 第三者からポートを収集(デフォルト=shodan)
-eP, --extract-params エンジンからURLパラメータを収集
-tO, --takeover サブドメインテイクオーバー脆弱性スキャナー
-wS, --websocket WebSocket接続チェック
-cF, --cloudfare IPがCloudflareに所有されているかを確認
-pS, --ping-sweep Pingスイープメソッドを使用したライブホストのチェック
-rS, --resolver ドメインリストを重複なしの解決済みIPリストに変換
-sC, --status-code ドメインリストからステータスコード、レスポンスを取得
-nT, --nmap-top nmapを使用したドメインリストからのトップポートスキャン
-sS, --screenshot ウェブサイトのスクリーンショット(デフォルト:gowitness)
-nP, --no-passive パッシブサブドメイン列挙を実行しない
-gW, --gwordlist 収集したURLリソース(パッシブ)に基づいてワードリストを生成
--httpx retryablehttpを使用した複数プローバーの実行
--dnsprobe 複数のDNSクエリの実行(dnsprobe)
--no-probe httprobeを実行しない
--html レポートをHTML形式で出力
--graph ネットワークグラフの可視化
すべての22のソースを使用し、動作するhttpまたはhttpsサーバーをプローブ(検証):
$ sudomy -d hackerone.com
1つ以上のソースを使用する場合:
$ sudomy -s shodan,dnsdumpster,webarchive -d hackerone.com
検証なしですべてのソースを使用する場合:
$ sudomy -d hackerone.com --no-probe
1つ以上のプラグインを使用する場合:
$ sudomy -pS -sC -sS -d hackerone.com
すべてのプラグインを使用する場合:ホストステータス、http/httpsステータスコード、サブドメインテイクオーバー、スクリーンショットのテスト。Nmap、Gobuster、wappalyzer、wscatは含まれません。
$ sudomy -d hackerone.com --all
HTML形式でレポートを作成する場合:
$ sudomy -d hackerone.com --html --all
HTMLレポートサンプル:
| ダッシュボード | レポート |
|---|---|
![]() | ![]() |
ネットワークグラフの可視化を生成する場合:
$ sudomy -d hackerone.com -rS --graph
グラフ可視化 サンプル:
| nGraph |
|---|
![]() |
最適な引数を使用してサブドメインを収集し、自動偵察とSlackへの通知を実行する場合:
./sudomy -d ngesec.id -dP -eP -rS -cF -pS -tO -gW --httpx --dnsprobe --graph -aI webanalyze --slack -sS
Slack通知サンプル:
| Slack |
|---|
![]() |
このプロジェクトのすべての注目すべき変更は、この ファイル に記録されます。