Skip to content

Minshenyao/querySecMCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuerySec MCP

一款 Burp Suite 插件,通过 MCP 协议为 AI 助手提供网络空间资产搜索能力。

支持:FOFA、Shodan、Quake、Hunter、ZoomEye


安装

1. 下载插件

Releases 下载 querysec-mcp-1.0.0-jar-with-dependencies.jar

或从源码编译:

git clone https://github.com/Minshenyao/querySecMCP.git
cd querySecMCP
mvn clean package

2. 加载到 Burp Suite

  1. 打开 Burp Suite
  2. ExtenderExtensionsAdd
  3. 选择下载的 JAR 文件
  4. 加载成功后会显示:MCP Server listening on http://127.0.0.1:23389

配置

1. 配置 API 密钥

创建配置文件:~/.config/querysec-mcp/config.json

{
  "apis": {
    "fofa": {
      "email": "your-email@example.com",
      "key": "your-fofa-api-key"
    },
    "shodan": {
      "key": "your-shodan-api-key"
    },
    "quake": {
      "key": "your-quake-api-key"
    },
    "hunter": {
      "key": "your-hunter-api-key"
    },
    "zoomeye": {
      "key": "your-zoomeye-api-key"
    }
  },
  "proxy": "http://127.0.0.1:7890"
}

提示proxy 字段可选,不需要代理可删除。只配置你需要使用的搜索引擎。

2. 配置 AI 工具

Claude Code / Claude Desktop

编辑 ~/.claude.json

{
  "mcpServers": {
    "querysec": {
      "type": "sse",
      "url": "http://127.0.0.1:23389"
    }
  }
}

重启 Claude,在 /mcp 菜单中应能看到 querysec 已连接。

Codex

编辑 ~/.codex/config.toml,添加:

[mcp_servers]

[mcp_servers.querysec]
type = "stdio"
command = "npx"
args = ["-y", "supergateway", "--sse", "http://127.0.0.1:23389"]

注意:Codex 使用 supergateway 将 SSE 桥接为 stdio 协议。首次使用会自动安装 supergateway


使用

在 AI 工具中直接使用自然语言:

使用 FOFA 搜索包含 "Apache" 的网站

使用 Shodan 查找开放 3389 端口的主机

用 Quake 搜索 MongoDB 数据库

使用 Hunter 查找 example.com 的所有子域名

用 ZoomEye 搜索某个漏洞的主机

可用工具

工具 说明 必需参数
fofa_search FOFA 资产搜索 query, api_key
shodan_search Shodan 主机搜索 query, api_key
quake_search Quake 360 搜索 query, api_key
hunter_search Hunter 域名搜索 query, api_key
zoomeye_search ZoomEye 网络空间搜索 query, api_key

API 文档

引擎 官网 API 文档
FOFA fofa.info API Docs
Shodan shodan.io API Docs
Quake quake.360.net API Docs
Hunter hunter.qianxin.com API Docs
ZoomEye zoomeye.org API Docs

许可证

MIT License

About

Burp Suite plugin that provides cyberspace asset search capabilities to AI assistants through MCP protocol

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages