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

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

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

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

工具目录

分类

查看所有分类
Loading categories
React2Shell-Scanner — 命令行安全评估框架,适用于 React 和 Next.js 应用程序,可分析 React Server Components 中的错误配置,支持多目标扫描、WAF 检测和代理支持。 | Kitploit
工具/GitHubGitHub/wi3memake/react2shell-scanner
漏洞扫描器API安全测试WAF绕过Web安全渗透测试DevSecOps
GitHubwi3memake/react2shell-scanner

React2Shell-Scanner

命令行安全评估框架,适用于 React 和 Next.js 应用程序,可分析 React Server Components 中的错误配置,支持多目标扫描、WAF 检测和代理支持。

查看仓库
3168个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

🔬 React2Shell Scanner

Python React Next.js License

面向 React 和 Next.js 应用程序的 Web 应用安全评估框架


⚠️ 重要声明

此工具仅用于授权安全测试。

  • ✅ 授权渗透测试
  • ✅ 范围内的漏洞赏金计划
  • ✅ 获得许可的安全研究
  • ✅ 测试您自己的应用程序
  • ❌ 未经授权的访问尝试
  • ❌ 未经明确许可的测试

用户须自行负责确保遵守所有适用法律。


📋 简介

React2Shell Scanner 是一个命令行安全评估框架,旨在帮助安全专业人员识别 React 和 Next.js Web 应用程序中的潜在漏洞。它专注于分析 React Server Components (RSC) 实现中的常见安全配置错误。

使用场景

  • 渗透测试 - 在测试项目中评估 React/Next.js 应用程序
  • 漏洞赏金 - 发现可报告的安全问题
  • 安全审计 - 全面的安全审查
  • DevSecOps - 集成到 CI/CD 安全流水线中

✨ 功能特性

功能描述
🎯 多目标扫描扫描单个 URL 或目标列表
🔄 并发测试多线程实现高效评估
🛡️ WAF 检测识别并分析 WAF 响应
📊 进度跟踪使用 tqdm 的可视化进度条
🔧 可配置请求头自定义请求头注入
🌐 代理支持通过 HTTP/HTTPS 代理路由
📝 输出格式生成 JSON 和文本报告
🎨 彩色 CLI清晰、颜色编码的终端输出

安全评估能力

  • RSC(React Server Components)分析
  • 服务端渲染评估
  • 重定向行为测试
  • 响应头分析
  • Content-type 验证

🚀 安装

前置要求

  • Python 3.8 或更高版本
  • pip 包管理器
  • 互联网连接

快速安装

root@kitploit:~
# 克隆仓库
git clone https://github.com/wi3memake/React2Shell-Scanner.git
cd react2shell-scanner

# 创建虚拟环境(推荐)
python -m venv venv
source venv/bin/activate  # Linux/Mac
.\venv\Scripts\activate   # Windows

# 安装依赖
pip install -r requirements.txt

依赖项

root@kitploit:~
requests>=2.28.0    # HTTP 客户端库
tqdm>=4.64.0        # 进度条可视化
urllib3>=1.26.0     # URL 处理

📖 使用方法

基本扫描

root@kitploit:~
# 单个目标
python react2shell.py.py -u https://example.com

# 详细输出
python react2shell.py.py -u https://example.com -v

批量扫描

root@kitploit:~
# 从文件扫描
python react2shell.py.py -l targets.txt

# 使用并发线程
python react2shell.py.py -l targets.txt -t 10

高级选项

root@kitploit:~
# 自定义请求头
python react2shell.py.py -u https://example.com -H "Authorization: Bearer token"

# 通过代理
python react2shell.py.py -u https://example.com --proxy http://127.0.0.1:8080

# 跳过 SSL 验证
python react2shell.py.py -u https://example.com --no-verify

# 输出到文件
python react2shell.py.py -u https://example.com -o results.json

命令行参数

参数简写描述默认值
--url-u单个目标 URL-
--list-l包含目标 URL 的文件-
--threads-t并发线程数5
--timeout-请求超时(秒)10
--proxy-代理 URL(http/https)-
--headers-H自定义请求头-
--output-o输出文件路径-
--no-verify-跳过 SSL 验证False
--verbose-v详细输出False
--waf-bypass-WAF 绕过模式False
--bypass-size-绕过载荷大小(KB)128

📊 输出示例

控制台输出

root@kitploit:~
React2Shell Web Application Security Assessment Framework

[*] Starting assessment of https://example.com
[*] Analyzing React Server Components...
[*] Testing redirect behavior...
[+] Assessment complete

Target: https://example.com
Status: Analyzed
Response Code: 200
Server: Next.js
React Version: 18.2.0
RSC Detected: Yes
Assessment Time: 1.23s

JSON 输出

root@kitploit:~
{
  "target": "https://example.com",
  "timestamp": "2025-01-15T10:30:00Z",
  "results": {
    "status_code": 200,
    "server": "Next.js",
    "rsc_detected": true,
    "headers": {
      "content-type": "text/html",
      "x-powered-by": "Next.js"
    },
    "assessment_time": 1.23
  }
}

🏗️ 项目结构

root@kitploit:~
React2Shell-Scanner/
├── react2shell.py.py      # 主扫描脚本
├── requirements.txt       # Python 依赖
└── README.md             # 文档

⚙️ 配置

目标文件格式

创建一个文本文件,每行一个 URL:

root@kitploit:~
https://target1.com
https://target2.com
https://target3.com/api

自定义请求头

使用重复的 -H 标志传递多个请求头:

root@kitploit:~
python react2shell.py.py -u https://example.com \
  -H "Authorization: Bearer token123" \
  -H "X-Custom-Header: value" \
  -H "Cookie: session=abc123"

代理配置

root@kitploit:~
# HTTP 代理
--proxy http://127.0.0.1:8080

# HTTPS 代理
--proxy https://proxy.example.com:8443

# 需要认证的代理
--proxy http://user:[email protected]:8080

🔧 集成

CI/CD 流水线

root@kitploit:~
# GitHub Actions 示例
security-scan:
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v3
    - name: Setup Python
      uses: actions/setup-python@v4
      with:
        python-version: '3.10'
    - name: Install dependencies
      run: pip install -r requirements.txt
    - name: Run security scan
      run: python react2shell.py.py -u ${{ secrets.TARGET_URL }} -o results.json

脚本集成

root@kitploit:~
import subprocess
import json

# 运行扫描器
result = subprocess.run(
    ['python', 'react2shell.py.py', '-u', 'https://example.com', '-o', 'results.json'],
    capture_output=True,
    text=True
)

# 解析结果
with open('results.json') as f:
    findings = json.load(f)

🛡️ 负责任使用

测试之前

  1. 获取授权 - 需要书面许可
  2. 明确范围 - 了解哪些在/不在范围内
  3. 协调沟通 - 与目标组织合作
  4. 记录文档 - 保留测试记录

测试期间

  1. 保持在范围内 - 仅测试授权目标
  2. 最小化影响 - 使用适当的线程数
  3. 监控 - 留意意外影响
  4. 必要时停止 - 如出现问题立即停止测试

测试之后

  1. 报告发现 - 专业地记录所有内容
  2. 遵循披露 - 尊重披露时间表
  3. 清理 - 删除创建的任何测试数据

🐛 故障排除

常见问题

连接超时

root@kitploit:~
# 增加超时时间
python react2shell.py.py -u https://example.com --timeout 30

SSL 证书错误

root@kitploit:~
# 跳过验证(仅限测试)
python react2shell.py.py -u https://example.com --no-verify

速率限制

root@kitploit:~
# 减少线程数
python react2shell.py.py -l targets.txt -t 2

🤝 贡献

我们欢迎以下方面的改进贡献:

  • 扫描准确性
  • 性能优化
  • 文档
  • 安全功能

请在 GitHub 上提交 issue 和 pull request。

📄 许可证

本项目采用 MIT 许可证。

📚 参考

  • Next.js 安全最佳实践
  • React 安全文档
  • OWASP Web 安全测试指南

让安全测试更高效
🔒 始终负责任地测试 🔒

下载工具