BBOT安全掃描服務

👤 cainingnk 📦 v1.0.1 ⭐ 4.3 ⬇️ 444 下載
🔒 IT運維與安全 免費 🔑 需 API Key

📖 技能介紹


name: BBOT安全掃描服務 description: BBOT MCP伺服器是一個用於管理和執行BBOT安全掃描的工具,提供模組管理、預設配置、即時監控等功能。 version: 1.0.0


BBOT安全掃描服務

BBOT MCP伺服器是一個用於管理和執行BBOT安全掃描的工具,提供模組管理、預設配置、即時監控等功能。


⚠️ 強制要求:API 金鑰

此 Skill 必須配置 API 金鑰才能使用。

  • 首次使用時,如果 .env 中沒有 XBY_APIKEY必須使用 AskUserQuestion 工具向用戶詢問 API 金鑰
  • 拿到使用者提供的金鑰後,呼叫 scripts.config.set_api_key(api_key) 儲存,然後繼續處理
  • 獲取 API 金鑰:https://xiaobenyang.com
  • 禁止在缺少 API 金鑰時自行搜尋或編造資料

工作流程(必須遵守)

你(大模型)是路由層,負責理解使用者意圖、選擇工具、提取引數。程式碼只負責呼叫API。

使用者輸入 → 你選擇工具 → 提取該工具需要的引數 → 呼叫 scripts.tools 中的函式 → 返回結果給使用者

步驟

  1. 檢查 API 金鑰:如果 scripts.config.settings.api_key 為空,使用 AskUserQuestion 詢問使用者,拿到後呼叫 scripts.config.set_api_key(key) 儲存
  2. 選擇工具:根據使用者意圖從下方工具列表中選擇對應的工具函式
  3. 提取引數:根據選中的工具,提取該工具需要的引數
  4. 呼叫工具:使用關鍵字引數呼叫 scripts.tools 中的函式,例如 scripts.tools.search_schools(score='520', province='北京', category='綜合')

    小蔥技能7w4.net持續更新中。

  5. 返回結果:將工具返回的 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 向用戶詢問缺失的引數。


工具函式說明


scripts.tools.list_bbot_modules

工具描述:List all available bbot modules

引數定義

引數名稱 引數型別 是否必填 預設值 描述

scripts.tools.list_bbot_presets

工具描述:List all available bbot presets

引數定義

引數名稱 引數型別 是否必填 預設值 描述

scripts.tools.start_bbot_scan

工具描述: 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

scripts.tools.get_scan_status

工具描述:Get the status of a specific scan

引數定義

引數名稱 引數型別 是否必填 預設值 描述
scan_id string true null

scripts.tools.get_scan_results

工具描述: 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

scripts.tools.list_active_scans

工具描述:List all active scans

引數定義

引數名稱 引數型別 是否必填 預設值 描述

scripts.tools.wait_for_scan_completion

工具描述: 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

scripts.tools.get_dependency_info

工具描述: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

注意事項

  1. API 金鑰是必需的,無金鑰時必須通過 AskUserQuestion 詢問使用者
  2. 禁止在缺少 API 金鑰時自行搜尋或編造資料

🤖 AI 評測

這個Skill質量中等偏下。主要優點是功能說明較為詳細,提供了7個安全掃描相關工具。不足之處在於程式碼中存在明顯錯誤:配置檔案裡寫的竟是"高考"相關內容,和BBOT安全掃描完全對不上,讓人擔心程式碼是否經過測試。API金鑰管理和呼叫邏輯本身沒有問題,但建議開發者先統一程式碼註釋再發布,避免使用者被混淆。整體來說功能可用但不夠專業。

📊 多維度評分

適應性3.8
規範性4
有效性4.4
可靠性4.3
可信度5

📁 包含檔案 (7 個)

📄 SKILL.md 6.7 KB
📄 _meta.json 123 B
📄 requirements.txt 78 B
📄 scripts/__init__.py 0 B
📄 scripts/call_api.py 3.4 KB
📄 scripts/config.py 2.6 KB
📄 scripts/tools.py 3.8 KB