name: BBOT安全掃描服務 description: BBOT MCP伺服器是一個用於管理和執行BBOT安全掃描的工具,提供模組管理、預設配置、即時監控等功能。 version: 1.0.0
BBOT MCP伺服器是一個用於管理和執行BBOT安全掃描的工具,提供模組管理、預設配置、即時監控等功能。
此 Skill 必須配置 API 金鑰才能使用。
.env 中沒有 XBY_APIKEY,必須使用 AskUserQuestion 工具向用戶詢問 API 金鑰scripts.config.set_api_key(api_key) 儲存,然後繼續處理你(大模型)是路由層,負責理解使用者意圖、選擇工具、提取引數。程式碼只負責呼叫API。
使用者輸入 → 你選擇工具 → 提取該工具需要的引數 → 呼叫 scripts.tools 中的函式 → 返回結果給使用者
scripts.config.settings.api_key 為空,使用 AskUserQuestion 詢問使用者,拿到後呼叫 scripts.config.set_api_key(key) 儲存scripts.tools 中的函式,例如 scripts.tools.search_schools(score='520', province='北京', category='綜合')小蔥技能7w4.net持續更新中。
raw 資料整理後展示給使用者根據使用者意圖選擇對應的工具函式:
| 使用者意圖 | 工具函式 |
|---|---|
| List all available bbot modules | scripts.tools.list_bbot_modules |
| List all available bbot presets | scripts.tools.list_bbot_presets |
| Start a new bbot scan |
Args:
targets: Comma-separated list of targets (domains, IPs, URLs)
modules: Comma-separated list of modules to use (optional)
presets: Comma-separated list of presets to use (optional)
flags: Comma-separated list of flags to use (optional)
no_deps: Disable dependency installation to prevent sudo prompts (default: True)
| scripts.tools.start_bbot_scan |
| Get the status of a specific scan | scripts.tools.get_scan_status |
|
Get results from a specific scan
Args:
scan_id: The ID of the scan
limit: Maximum number of results to return (default: 100)
| scripts.tools.get_scan_results |
| List all active scans | scripts.tools.list_active_scans |
|
Wait for a scan to complete with timeout and progress reporting
Args:
scan_id: The ID of the scan to wait for
timeout: Maximum time to wait in seconds (default: 300 = 5 minutes)
poll_interval: How often to check scan status in seconds (default: 5)
include_progress: Whether to include progress updates in the response (default: True)
| scripts.tools.wait_for_scan_completion |
| Get information about dependency management in bbot scans | scripts.tools.get_dependency_info |
如果引數不完整,使用 AskUserQuestion 向用戶詢問缺失的引數。
工具描述:List all available bbot modules
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
工具描述:List all available bbot presets
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
工具描述: Start a new bbot scan
Args: targets: Comma-separated list of targets (domains, IPs, URLs) modules: Comma-separated list of modules to use (optional) presets: Comma-separated list of presets to use (optional) flags: Comma-separated list of flags to use (optional) no_deps: Disable dependency installation to prevent sudo prompts (default: True)
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| targets | string | true | null | |
| modules | string | false | "" | null |
| presets | string | false | "" | null |
| flags | string | false | "" | null |
| no_deps | boolean | false | true | null |
工具描述:Get the status of a specific scan
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| scan_id | string | true | null |
工具描述: Get results from a specific scan
Args: scan_id: The ID of the scan limit: Maximum number of results to return (default: 100)
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| scan_id | string | true | null | |
| limit | integer | false | 100.0 | null |
工具描述:List all active scans
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
工具描述: Wait for a scan to complete with timeout and progress reporting
Args: scan_id: The ID of the scan to wait for timeout: Maximum time to wait in seconds (default: 300 = 5 minutes) poll_interval: How often to check scan status in seconds (default: 5) include_progress: Whether to include progress updates in the response (default: True)
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| scan_id | string | true | null | |
| timeout | integer | false | 300.0 | null |
| poll_interval | integer | false | 5.0 | null |
| include_progress | boolean | false | true | null |
工具描述:Get information about dependency management in bbot scans
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
工具函式返回 dict 物件:
- result["raw"] - API 原始返回資料(JSON),直接將此資料整理後展示給使用者
- result["success"] - 是否成功(True/False)
- result["message"] - 狀態訊息
xiaobenyang_gaokao_skill/
├── scripts/
│ ├── __init__.py
│ ├── config.py # 配置管理 + set_api_key()
│ ├── call_api.py # API 客戶端 + call_api()
│ └── tools.py # 工具函式(直接呼叫)
├── requirements.txt
└── SKILL.md
這個Skill質量中等偏下。主要優點是功能說明較為詳細,提供了7個安全掃描相關工具。不足之處在於程式碼中存在明顯錯誤:配置檔案裡寫的竟是"高考"相關內容,和BBOT安全掃描完全對不上,讓人擔心程式碼是否經過測試。API金鑰管理和呼叫邏輯本身沒有問題,但建議開發者先統一程式碼註釋再發布,避免使用者被混淆。整體來說功能可用但不夠專業。