
サブドメインを列挙し、XSS、SQLi、オープンリダイレクト、LFI、SSRF、RCEのパラメータをフィルタリングした後、脆弱性をスキャンする自動化ツール。
機能 • インストール • 使い方 • WebCopilotの実行 • 使用ツール • 謝辞
WebCopilot は、ターゲットのサブドメインを列挙し、さまざまなオープンソースツールを使用してバグを検出するために設計された自動化ツールです。
このスクリプトは、まず assetfinder、sublister、subfinder、amass、findomain、hackertarget、riddler、crt を使って指定されたターゲットドメインの全サブドメインを列挙し、次に SecLists ワードリストから gobuster を使用してアクティブなサブドメイン列挙を行い、dnsx で生存しているサブドメインだけをフィルタリングします。その後、httpx でサブドメインのタイトルを抽出し、subjack でサブドメインテイクオーバーをスキャンします。次に、gau/gauplus、waybackurls、または waymore を使用して、与えられたサブドメインの全エンドポイントをクロールし、gf パターンを使用して XSS、LFI、SSRF、SQLi、オープンリダイレクト、RCE パラメータを抽出し、その後、さまざまなオープンソースツール(kxss、dalfox、openredirex、nuclei など)でサブドメインの脆弱性をスキャンします。そしてスキャン結果を出力し、全出力を指定されたディレクトリに保存します。
g!2m0:~ webcopilot -h
──────▄▀▄─────▄▀▄
─────▄█░░▀▀▀▀▀░░█▄
─▄▄──█░░░░░░░░░░░█──▄▄
█▄▄█─█░░▀░░┬░░▀░░█─█▄▄█
██╗░░░░░░░██╗███████╗██████╗░░█████╗░░█████╗░██████╗░██╗██╗░░░░░░█████╗░████████╗
░██║░░██╗░░██║██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║██║░░░░░██╔══██╗╚══██╔══╝
░╚██╗████╗██╔╝█████╗░░██████╦╝██║░░╚═╝██║░░██║██████╔╝██║██║░░░░░██║░░██║░░░██║░░░
░░████╔═████║░██╔══╝░░██╔══██╗██║░░██╗██║░░██║██╔═══╝░██║██║░░░░░██║░░██║░░░██║░░░
░░╚██╔╝░╚██╔╝░███████╗██████╦╝╚█████╔╝╚█████╔╝██║░░░░░██║███████╗╚█████╔╝░░░██║░░░
░░░╚═╝░░░╚═╝░░╚══════╝╚═════╝░░╚════╝░░╚════╝░╚═╝░░░░░╚═╝╚══════╝░╚════╝░░░░╚═╝░░░
[●] Version: 2.0.0
[●] @h4r5h1t | G!2m0
[❌] 警告: 注意して使用してください。あなたは自身の行動に対して責任を負います。
[❌] 開発者は一切の責任を負わず、このツールの誤用や損害についても責任を負いません。
使い方:
webcopilot -d <ターゲット>
webcopilot -d <ターゲット> -a
webcopilot [-d ターゲット] [-o 出力先] [-t スレッド数] [-b ブラインドサーバーURL] [-x 除外ドメイン] [-f サブドメインファイル] [-a] [-v] [-h]
フラグ:
-d ターゲットを追加 [オプション]
-o 出力をフォルダに保存 [デフォルト: webcopilot-<タイムスタンプ>]
-t スレッド数 [デフォルト: 100]
-b ブラインドXSS用のサーバーを追加 [デフォルト: False]
-x スコープ外のドメインを除外 [デフォルト: False]
-f サブドメインを含むファイルを指定(サブドメイン列挙をスキップ)[オプション]
-a すべての列挙を実行(デフォルトではサブドメイン列挙のみ)[デフォルト: False][時間がかかります]
-v ツールのバージョンを表示
-h このヘルプメッセージを表示
例: ./webcopilot -d domain.com -a -o domain -t 333 -x exclude.txt -b testServer.oast.fun
サーバーは https://app.interactsh.com/ で取得できます。
WebCopilotのインストールには git が必要です。root として次のコマンドを実行してインストールしてください。
git clone https://github.com/h4r5h1t/webcopilot && cd webcopilot/ && chmod +x webcopilot install.sh && mv webcopilot /usr/bin/ && ./install.sh
[*] Installing Tools
[*] Creating Directories
[*] Installing Dependencies and Checking is Installed or Not
[*] git is already installed
[*] python3 is already installed
[*] python3-pip is already installed
[*] ruby is already installed
[*] golang-go is already installed
[*] snapd could not be found [*] Installing snapd
[*] snapd is not installed successfully, Please install it manually
[*] cmake is already installed
[*] jq is already installed
[*] gobuster is already installed
[*] chromium is already installed
[*] parallel is already installed
[*] Installing Python Tools
[*] Sublist3r could not be found [*] Installing Sublist3r
[*] Sublist3r is installed successfully
[*] sqlmap is already installed
[*] urldedupe is already installed
[*] openredirex is already installed
[*] waymore is already installed
[*] findomain is already installed
[*] uro is already installed
[*] Installing Wordlists and Payloads
[*] Skipping payloads/lfi.txt, already exists.
[*] Skipping resolvers.txt, already exists.
[*] Skipping subdomains.txt, already exists.
[*] Skipping fuzz.txt, already exists.
[*] Skipping dicc.txt, already exists.
[*] Skipping big.txt, already exists.
[*] Skipping dns.txt, already exists.
[*] Installing Go Tools
[*] anew is already installed
[*] gf is already installed
[*] aquatone could not be found [*] Installing aquatone
[*] aquatone is not installed successfully, Please install it manually
[*] assetfinder is already installed
[*] gau is already installed
[*] waybackurls is already installed
[*] httpx could not be found [*] Installing httpx
[*] httpx is not installed successfully, Please install it manually
[*] amass could not be found [*] Installing amass
[*] amass is not installed successfully, Please install it manually
[*] kxss is already installed
[*] subjack is already installed
[*] qsreplace is already installed
[*] dnsx could not be found [*] Installing dnsx
[*] dnsx is not installed successfully, Please install it manually
[*] dalfox is already installed
[*] crlfuzz is already installed
[*] nuclei could not be found [*] Installing nuclei
[*] nuclei is not installed successfully, Please install it manually
[*] subfinder could not be found [*] Installing subfinder
[*] subfinder is not installed successfully, Please install it manually
[*] Configuring Tools and Setting Up Environment
[*] All Tools are installed successfully
SubFinder • Sublist3r • Findomain • gf • OpenRedireX • dnsx • sqlmap • gobuster • assetfinder • httpx • kxss • qsreplace • Nuclei • dalfox • anew • jq • aquatone • urldedupe • Amass • gauplus • waybackurls • crlfuzz • gau • waymore • SUBLIST3R_V2.0 • uro
ツールをターゲットに対して実行するには、次のコマンドを使用します。
g!2m0:~ webcopilot -d example.com
-o コマンドを使用して出力ディレクトリを指定できます。
g!2m0:~ webcopilot -d example.com -o example
-a コマンドを使用して、すべての列挙(サブドメイン列挙+脆弱性スキャン)を実行できます。
g!2m0:~ webcopilot -d example.com -o example -a
-t コマンドを使用して、スキャンにスレッドを追加し、高速化できます。
g!2m0:~ webcopilot -d example.com -o example -t 333
-b コマンドはブラインドXSS(OOB)に使用できます。サーバーは interact から取得してください。
g!2m0:~ webcopilot -d example.com -o example -t 333 -b eeuyhzfnsezrraragtd70ex5oc2hsw.oast.fun
-x コマンドを使用して、スコープ外のドメインを除外できます。
g!2m0:~ echo out.example.com > excludeDomain.txt
g!2m0:~ webcopilot -d example.com -o example -t 333 -x excludeDomain.txt -b eeuyhzfnsezrraragtd70ex5oc2hsw.oast.fun
-f コマンドを使用して、サブドメインを含むファイルを渡せます(これを利用するとアクティブ+パッシブのサブドメイン列挙をスキップします)。
g!2m0:~ webcopilot -d example.com -o example -f /home/ubuntu/subdomains.txt -a
デフォルトオプションは次のようになります:
g!2m0:~ webcopilot -d http://testphp.vulnweb.com/ -a -b eeuyhzfpwgnsezrraragtd70ex5oc2hsw.oast.fun
──────▄▀▄─────▄▀▄
─────▄█░░▀▀▀▀▀░░█▄
─▄▄──█░░░░░░░░░░░█──▄▄
█▄▄█─█░░▀░░┬░░▀░░█─█▄▄█
██╗░░░░░░░██╗███████╗██████╗░░█████╗░░█████╗░██████╗░██╗██╗░░░░░░█████╗░████████╗
░██║░░██╗░░██║██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║██║░░░░░██╔══██╗╚══██╔══╝
░╚██╗████╗██╔╝█████╗░░██████╦╝██║░░╚═╝██║░░██║██████╔╝██║██║░░░░░██║░░██║░░░██║░░░
░░████╔═████║░██╔══╝░░██╔══██╗██║░░██╗██║░░██║██╔═══╝░██║██║░░░░░██║░░██║░░░██║░░░
░░╚██╔╝░╚██╔╝░███████╗██████╦╝╚█████╔╝╚█████╔╝██║░░░░░██║███████╗╚█████╔╝░░░██║░░░
░░░╚═╝░░░╚═╝░░╚══════╝╚═════╝░░╚════╝░░╚════╝░╚═╝░░░░░╚═╝╚══════╝░╚════╝░░░░╚═╝░░░
[●] Version: 2.0.0
[●] @h4r5h1t | G!2m0
[❌] 警告: 注意して使用してください。あなたは自身の行動に対して責任を負います。
[❌] 開発者は一切の責任を負わず、このツールの誤用や損害についても責任を負いません。
ターゲット: http://testphp.vulnweb.com/
出力先: /home/ubuntu/github/webcopilot/webcopilot-1714304809
スレッド数: 100
サーバー: eeuyhzfpwgnsezdyeragtd70ex5oc2hsw.oast.fun
除外: False
モード: 全列挙を実行
時刻: 28-04-2024 17:16:49
[!] スキャン中です。お待ちください...
[●] パッシブサブドメインスキャンを実行中:
[●] サブドメインスキャン完了 - [assetfinder✔] サブドメイン発見数: 0
[●] サブドメインスキャン完了 - [SUBLIST3R_V2.0✔] サブドメイン発見数: 0
[●] サブドメインスキャン完了 - [subfinder✔] サブドメイン発見数: 1
[●] サブドメインスキャン完了 - [amass✔] サブドメイン発見数: 0
[●] サブドメインスキャン完了 - [findomain✔] サブドメイン発見数: 1
[●] サブドメインスキャン完了 - [crt.sh✔] サブドメイン発見数: 0
[●] サブドメインスキャン完了 - [hackertarget✔] サブドメイン発見数: 1
[●] サブドメインスキャン完了 - [riddler✔] サブドメイン発見数: 0
[●] サブドメインスキャン完了 - [certspotter✔] サブドメイン発見数: 0
[●] アクティブサブドメインスキャンを実行中:
[!] しばらくお待ちください。時間がかかる場合があります...
[●] アクティブサブドメインスキャン完了 - [gobuster✔] サブドメイン発見数: 0
[●] アクティブサブドメインスキャン完了 - [amass✔] サブドメイン発見数: 0
[●] サブドメインフィルタリング: 生存サブドメインをフィルタリング中
[●] サブドメインフィルタリング完了。確認: /subdomains/alivesub.txt
[●] サブドメインスキャン: 有効なサブドメインのタイトルを取得中
[●] サブドメインのビジュアル検査完了。確認: /subdomains/aquatone/
[●] サブドメイン列挙完了。 合計: 1 | 生存: 1
[●] エンドポイントスキャン完了。 合計: 0
[●] 脆弱性スキャンを実行中: すべての脆弱性を取得中
[●] 脆弱性スキャンを実行中:
[●] 脆弱性スキャン完了 - [XSS✔] 発見数: 0
[●] 脆弱性スキャン完了 - [SQLi✔] 発見数: 0
[●] 脆弱性スキャン完了 - [LFI✔] 発見数: 0
[●] 脆弱性スキャン完了 - [CRLF✔] 発見数: 0
[●] 脆弱性スキャン完了 - [SSRF✔] 発見数: 0
[●] 脆弱性スキャン完了 - [オープンリダイレクト✔] 発見数: 0
[●] 脆弱性スキャン完了 - [サブドメインテイクオーバー✔] 発見数: 0
[●] 脆弱性スキャン完了 - [Nuclie✔] 発見数: 0
[●] 脆弱性スキャン完了。確認: /vulnerabilities/
▒█▀▀█ █▀▀ █▀▀ █░░█ █░░ ▀▀█▀▀
▒█▄▄▀ █▀▀ ▀▀█ █░░█ █░░ ░░█░░
▒█░▒█ ▀▀▀ ▀▀▀ ░▀▀▀ ▀▀▀ ░░▀░░
[+] http://testphp.vulnweb.com/ のサブドメイン
[+] 発見されたサブドメイン: 1
[+] 生存サブドメイン: 1
[+] エンドポイント: 0
[+] XSS: 0
[+] SQLi: 0
[+] オープンリダイレクト: 0
[+] SSRF: 0
[+] CRLF: 0
[+] LFI: 0
[+] サブドメインテイクオーバー: 0
[+] Nuclei: 0
WebCopilot は ROX4R による Garud と Pinaak から着想を得ています。
@aboul3la @tomnomnom @lc @hahwul @projectdiscovery @maurosoria @shelld3v @devanshbatham @michenriksen @defparam @projectdiscovery @bp0lr @ameenmaali @sqlmapproject @dwisiswant0 @OWASP @OJ @Findomain @danielmiessler @1ndianl33t @ROX4R @xnl-h4ck3r @hxlxmjxbbxs @s0md3v
| 警告: 開発者は一切の責任を負わず、このツールの誤用や損害についても責任を負いません。したがって、注意して使用してください。あなたは自身の行動に対して責任を負います。 |