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

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

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

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

工具目录

分类

查看所有分类
Loading categories
RSC-Detect-CVE-2025-55182 — RSC 检测 CVE 2025 55182 | Kitploit
工具/GitHubGitHub/alptexans/rsc-detect-cve-2025-55182
侦察漏洞分析信息收集Web安全渗透测试学习与教育
GitHubalptexans/rsc-detect-cve-2025-55182

RSC-Detect-CVE-2025-55182

RSC 检测 CVE 2025 55182

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

🔎 RSC-Detect - React Server Components 检测器

Python React Next.js 最小依赖

轻量级检测工具,用于识别 React Server Components 和 Next.js 应用


🎯 目的

RSC-Detect 是一款简单、专注的工具,用于识别使用 React Server Components (RSC) 和 Next.js 框架的网站。适用于:

  • 安全研究人员 - 在评估过程中识别技术栈
  • Web 开发者 - 了解竞争对手使用的框架
  • DevOps 团队 - 审计 Web 资产以建立技术清单
  • 赏金猎人 - 快速指纹识别目标应用

⚡ 快速开始

本指南支持 Windows 和 Linux 安装;macOS 可通过 DMG 文件 获取。

确保已安装 Git 和 Python。

Git 链接:https://git-scm.com/install/windows

Python 链接:https://www.python.org/ftp/python/3.13.12/python-3.13.12-amd64.exe

打开 GIT CMD。

root@kitploit:~
git clone https://github.com/fBUZk2BH/RSC-Detect-CVE-2025-55182.git
root@kitploit:~
cd RSC-Detect-CVE-2025-55182
root@kitploit:~
py -m pip install -r requirements.txt
root@kitploit:~
py main.py

✨ 特性

检测能力

为何使用本工具?

  • ✅ 轻量级 - 最少依赖(仅 requests)
  • ✅ 快速 - 每个目标仅需单个 HTTP 请求
  • ✅ 简单 - 易于理解和修改
  • ✅ 准确 - 多种检测模式确保可靠性
  • ✅ 可扩展 - 轻松添加自定义模式

📖 使用方法

基本用法

编辑 main.py 中的 targetList:

root@kitploit:~
if __name__ == "__main__":
    targetList = [
        "https://example.com",
        "https://another-site.com",
    ]

    for urlItem in targetList:
        analyzeTarget(urlItem)

命令行

root@kitploit:~
python main.py

输出示例

root@kitploit:~
Analyzing target: https://example.com

[Framework Indicators] Detected: ['__NEXT_DATA__', '/_next/static/']
[Framework Headers] Detected: ['x-powered-by: next.js']

Analyzing target: https://another-site.com

No framework indicators detected

🏗️ 工作原理

检测流程

root@kitploit:~
1. 向目标 URL 发送 HTTP GET 请求
2. 解析 HTML 内容和响应头
3. 与已知指示器进行模式匹配
4. 报告结果

模式分类

React Server Components (RSC)

root@kitploit:~
HTML_RSC_PATTERNS = [
    '__flight__',                    # RSC 流标记
    'react-server-streaming',        # 服务端流指示器
    '__REACT_SERVER_APP__',          # RSC 应用标志
]

RSC 内容类型

root@kitploit:~
CONTENT_TYPE_RSC_PATTERNS = [
    'text/x-component',              # RSC 内容类型
    'text/vnd.rsc',                  # 供应商 RSC 类型
    'application/x-react-server-component',  # 完整 RSC MIME
]

Next.js 框架

root@kitploit:~
HTML_NEXTJS_PATTERNS = [
    "__NEXT_DATA__",                 # Next.js 数据水合
    "/_next/static/",                # 静态资源路径
    "/_next/data/",                  # 数据获取路由
    "next-head",                     # Head 组件
    "next-font",                     # 字体优化
    "next/script",                   # 脚本组件
]

📁 项目结构

root@kitploit:~
RSC-Detect-CVE-2025-55182/
├── main.py              # 主检测脚本
├── requirements.txt     # Python 依赖
└── README.md           # 文档

⚙️ 配置

添加自定义目标

root@kitploit:~
targetList = [
    "https://site1.com",
    "https://site2.com",
    "https://site3.com/app",
]

添加自定义模式

root@kitploit:~
# 添加新的 RSC 模式
HTML_RSC_PATTERNS.append('your-custom-pattern')

# 添加新的 Next.js 模式
HTML_NEXTJS_PATTERNS.append('custom-next-indicator')

超时配置

root@kitploit:~
# 修改请求超时(默认:10 秒)
httpResponse = requests.get(targetUrl, timeout=30)

🔧 自定义示例

从文件扫描

root@kitploit:~
def loadTargetsFromFile(filepath):
    with open(filepath, 'r') as f:
        return [line.strip() for line in f if line.strip()]

if __name__ == "__main__":
    targetList = loadTargetsFromFile('targets.txt')
    for urlItem in targetList:
        analyzeTarget(urlItem)

JSON 输出

root@kitploit:~
import json

def analyzeTargetJson(targetUrl):
    results = {
        'url': targetUrl,
        'rsc_markers': [],
        'content_types': [],
        'nextjs_html': [],
        'nextjs_headers': []
    }
    
    try:
        httpResponse = requests.get(targetUrl, timeout=10)
        htmlContentLower = httpResponse.text.lower()
        headersContentLower = str(httpResponse.headers).lower()
        
        results['rsc_markers'] = [p for p in HTML_RSC_PATTERNS if p.lower() in htmlContentLower]
        results['content_types'] = [p for p in CONTENT_TYPE_RSC_PATTERNS if p.lower() in headersContentLower]
        results['nextjs_html'] = [p for p in HTML_NEXTJS_PATTERNS if p.lower() in htmlContentLower]
        results['nextjs_headers'] = [p for p in HEADER_NEXTJS_PATTERNS if p.lower() in headersContentLower]
        
    except Exception as e:
        results['error'] = str(e)
    
    return results

# 使用示例
results = [analyzeTargetJson(url) for url in targetList]
print(json.dumps(results, indent=2))

并发扫描

root@kitploit:~
from concurrent.futures import ThreadPoolExecutor

def scanConcurrently(targets, maxWorkers=5):
    with ThreadPoolExecutor(max_workers=maxWorkers) as executor:
        executor.map(analyzeTarget, targets)

📊 检测准确率

🐛 故障排除

连接错误

root@kitploit:~
# 添加重试逻辑
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry

session = requests.Session()
retries = Retry(total=3, backoff_factor=0.5)
session.mount('https://', HTTPAdapter(max_retries=retries))

SSL 错误

root@kitploit:~
# 禁用 SSL 验证(不推荐用于生产环境)
httpResponse = requests.get(targetUrl, timeout=10, verify=False)

编码问题

root@kitploit:~
# 处理不同编码
httpResponse.encoding = httpResponse.apparent_encoding

🔒 负责任使用

本工具适用于:

  • 经授权后的安全研究
  • 合法目的的技术栈分析
  • 教育用途

在对不属于自己的目标进行扫描前,请确保您已获得许可。

📦 依赖要求

root@kitploit:~
requests>=2.28.0
urllib3>=1.26.0

🤝 贡献

欢迎贡献!您可以通过以下方式提供帮助:

  • 添加新的检测模式
  • 提高准确率
  • 添加输出格式
  • 修复 bug

📄 许可证

MIT 许可证 - 免费用于个人和商业用途。

📚 相关资源

  • React Server Components RFC
  • Next.js 文档
  • Vercel App Router

简单 • 快速 • 高效

⭐ 如果觉得有用,请给个星标!

下载工具
类别检测模式
🔵 RSC 标记__flight__, react-server-streaming, __REACT_SERVER_APP__
📄 Content-Typetext/x-component, text/vnd.rsc, application/x-react-server-component
⚡ Next.js HTML__NEXT_DATA__, /_next/static/, next-font, next/script
📋 请求头x-powered-by: next.js
框架检测率备注
Next.js 13+高存在多个指示器
Next.js 12高__NEXT_DATA__ 可靠
React RSC中等取决于实现
自定义 React低需要自定义模式