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

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

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

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

工具目录

分类

查看所有分类
Loading categories
RSC-Detect-CVE-2025-55182 — RSC 检测 CVE 2025 55182 | Kitploit
工具/GitHubGitHub/vijay-shirhatti/rsc-detect-cve-2025-55182
侦察漏洞分析信息收集Web安全学习与教育精选资源
GitHubvijay-shirhatti/rsc-detect-cve-2025-55182

RSC-Detect-CVE-2025-55182

RSC 检测 CVE 2025 55182

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
21968个月前Kitploit 审核通过

🔎 RSC-Detect - React 服务端组件检测器

Python React Next.js Minimal

轻量级检测工具,用于识别 React 服务端组件和 Next.js 应用程序


🎯 目的

RSC-Detect 是一个简洁、专注的工具,用于识别使用 React 服务端组件 (RSC) 和 Next.js 框架的网站。它适用于:

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

⚡ 快速开始

root@kitploit:~
# 克隆
git clone https://github.com/vijay-shirhatti/RSC-Detect-CVE-2025-55182.git
cd rsc-detect

# 安装
pip install -r requirements.txt

# 运行
python 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 服务端组件 (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",                   # 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

🤝 贡献

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

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

📄 许可证

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

📚 相关资源

  • React Server Components RFC
  • Next.js Documentation
  • 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低需要自定义模式