安全扫描服务

基于MCP协议的Nuclei安全扫描服务,支持多种扫描选项和结果输出格式。

  • by crazyMarky
  • Python
  • 本地部署
  • 21 星标
  • 更新于
在 GitHub 查看 crazyMarky/mcp_nuclei_server

使用说明

MCP Nuclei服务器

基于MCP(模型控制协议)的Nuclei安全扫描服务器,提供便捷的漏洞扫描服务。

项目介绍

MCP Nuclei Server是基于MCP协议开发的Nuclei安全扫描服务。它允许大型语言模型执行Nuclei安全扫描,支持各种扫描选项和结果输出格式。

主要特点:

  • 支持Nuclei安全扫描
  • 可配置的模板和标签过滤
  • 支持基于严重性的漏洞过滤
  • JSON格式输出结果
  • 易于集成的MCP服务

安装指南

先决条件

  • Python 3.8或更高版本
  • Nuclei二进制(已安装和配置)

安装步骤

  1. 克隆存储库:
git clone https://github.com/crazyMarky/mcp_nuclei_server.git
cd mcp_nuclei_server
  1. 安装UV并激活环境:
curl -LsSf https://astral.sh/uv/install.sh | sh # Linux/Mac
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"  # Windows
  1. 安装依赖项:
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install mcp related packages
uv pip install mcp

使用指南

MCP配置(CLINE示例)

  1. 参考MCP JSON配置:
{
  "mcpServers": {
    "nuclei_mcp_server": {
      "command": "/path/to/uv", # path to uv
      "args": [
        "--directory",
        "/path/to/nuclei_mcp_server/",
        "run",
        "main.py"
      ],
      "env": {
        "NUCLEI_BIN_PATH": "/path/to/nuclei"
      }
    }
  }
}

用法示例

参数说明

  • target:目标URL或IP地址
  • templates:要使用的特定模板列表(可选)
  • severity:漏洞严重性过滤器(严重、高、中、低、信息)
  • template_tags:模板标签过滤器(可选)
  • output_format:输出格式(默认:“json”)

输出格式

扫描结果以JSON格式返回,包含以下字段:

{
    "success": true,
    "target": "https://example.com",
    "time_cost_seconds": 10.5,
    "results": [
        {
            "template": "template-name",
            "severity": "high",
            "matched_at": "https://example.com/path",
            "info": {
                "name": "Vulnerability Name",
                "description": "Vulnerability Description"
            }
        }
    ]
}

贡献

欢迎问题和拉取请求!

  1. 分叉项目
  2. 创建功能分支(git checkout -b feature/AmazingFeature)
  3. 提交您的更改(git commit -m 'Add some AmazingFeature')
  4. 推到分支(git push origin feature/AmazingFeature)
  5. 打开拉取请求

许可证

此项目根据MIT许可证获得许可-请参阅 许可证 详细信息文件

联系

如有任何问题或建议,请通过以下方式与我们联系:

  • 提交问题