← 返回列表

OmniScan 综合漏洞扫描器

聚合站 SecWiki技术 入库 2026-11-18T02:46:52

OmniScan 是一款基于 Python 的轻量级、多引擎漏洞扫描器,专为红队操作和安全研究设计。它不仅集成了轻量级 Nuclei 引擎 (Lite) 和 Afrog 引擎,还提供了强大的资产收集和结果管理功能。

  1. 克隆仓库:
git clone https://github.com/d3ckx1/OmniScan.git
cd omniscan
  1. 安装依赖:
    pip3 install -r requirements.txt
  2. 配置工具 (可选):
    - 如果使用 Afrog 或 XRay,请确保相应的可执行文件在项目根目录或系统路径中。
    - 配置 config.yml (可选) 设置 API Key 和扫描参数。

扫描单个 URL:

python3 omniscan.py -u http://example.com --tool lite -T ./templates/cve/
从 FOFA 搜索资产并使用 Nuclei Lite 引擎扫描:

python3 omniscan.py -f 'app="SpringBoot"' --tool lite -T ./templates/spring-boot/
从 urls.txt 读取目标并扫描:

python3 omniscan.py -l urls.txt --tool lite -T ./templates/cve/
- Nuclei Lite: python3 omniscan.py -l urls.txt --tool lite -T ./templates/
- Afrog: python3 omniscan.py -l urls.txt --tool afrog
- XRay: python3 omniscan.py -l urls.txt --tool xray

不带 --tool 参数运行,将进入交互菜单选择工具:

python3 omniscan.py -l urls.txt
扫描 Blind RCE 漏洞(自动启用 Interactsh):

python3 omniscan.py -l urls.txt --tool lite -T ./templates/blind-rce.yaml
如果检测到 OOB 交互,控制台将输出 [OOB DETECTED] 并记录漏洞。

使用 Nuclei Lite 引擎并启用所有插件:

python3 omniscan.py -l urls.txt --tool lite -T ./templates/ --plugins
仅运行 Git Config 和 PHPInfo 插件:

python3 omniscan.py -l urls.txt --tool lite -T ./templates/ --plugin-file plugins/git_config.py,plugins/phpinfo.py
不进行实际扫描,仅检查模板兼容性:

python3 omniscan.py --classify-only --tool lite -T ./templates/
| 参数 | 说明 | 示例 |
|---|---|---|
| -u URL | 扫描单个 URL | -u http://example.com |
| -f | 使用 FOFA 搜索资产 | -f 'country="CN"' |
| -s | 使用 Shodan 搜索资产 | -s 'apache' |
| -l FILE | 指定本地目标文件 | -l targets.txt |
| -T TEMPLATE | 指定 Nuclei 模板路径 (文件/目录) | -T ./templates/ |
| --tool NAME | 指定扫描工具 (nuclei/afrog/xray/lite) | --tool lite |
| --severity | 指定漏洞等级 (默认 critical,high) | --severity high,medium |
| --plugins | 启用 Python 插件扫描 (扫描 plugins/ 目录) | --plugins |
| --plugin-file FILE | 指定运行特定的插件文件 (逗号分隔) | --plugin-file plugins/test.py |
| --new | 仅扫描新发布的模板 (需 Nuclei 支持) | --new |
| --no-resume | 禁用断点续传 | --no-resume |
| --verbose | 显示详细调试日志 | --verbose |

app:
  lite_timeout: 10        # 请求超时 (秒)
  lite_threads: 10        # 并发线程数
  use_async: true         # 启用异步模式
  user_agents:            # 自定义 User-Agent 池
    - "Mozilla/5.0..."
fofa:
  email: "your_email"
  key: "your_key"
shodan:
  api_key: "your_key"
output:
  formats: ["json", "csv", "html"] # 报告格式

Q: [OOB DETECTED] 是什么意思?
A: 这表示扫描器成功检测到了带外交互(Out-of-Band Interaction)。这通常意味着目标触发了 DNS 或 HTTP 请求回调,证明了 Blind RCE、SSRF 或 Blind SQLi 等漏洞的存在。

Q: 如何配置 FOFA/Shodan API?
A: 您可以在 config.yml 文件中填写 API Key,或者通过环境变量 FOFA_EMAIL, FOFA_KEY, SHODAN_API_KEY 设置。

Q: 支持哪些操作系统?
A: Omniscan 是跨平台的,支持 Linux, macOS 和 Windows。外部工具(如 afrog, interactsh-client)需要确保在当前系统可执行。

MIT License

原文链接:https://github.com/d3ckx1/OmniScan