Bounty Hunter Pro
Purpose
Autonomous vulnerability scanning for authorized bug bounty programs.
⚠️ CRITICAL: Scope Safety
NEVER scan targets outside [AUTHORIZED_TARGETS]
Before any scan:
- 1. Verify target is in authorized list
- Log the scope check
- Only proceed if authorized
Components
1. nightwatch.py — Scanner
- - Certificate Transparency (crt.sh) for subdomains
- JS file analysis for secrets
- Multi-threaded (10 workers default)
- Outputs to INLINECODE0
2. analyze_daemon.py — Analyzer
- - Watches INLINECODE1
- Entropy filtering to reduce false positives
- Two-stage LLM analysis:
- Fast: qwen2.5-coder:1.5b
- Deep: glm-5:cloud
3. watchdog.py — Alerter
- - Monitors for CRITICAL findings
- Sends alerts via OpenClaw message bus
Setup
CODEBLOCK0
Usage Prompt
CODEBLOCK1
Directory Structure
CODEBLOCK2
Output Format
Reports saved to: INLINECODE3
CODEBLOCK3
Safety Guards
CODEBLOCK4
Cron Schedule
CODEBLOCK5
Known Limitations
- - CPU-only (no CUDA)
- Rate limiting may slow scans
- Some false positives in entropy detection
赏金猎人专业版
目的
对授权的漏洞赏金计划进行自主漏洞扫描。
⚠️ 关键:范围安全
切勿扫描 [授权目标] 之外的目标
在任何扫描之前:
- 1. 确认目标在授权列表中
- 记录范围检查日志
- 仅当获得授权时才继续
组件
1. nightwatch.py — 扫描器
- - 证书透明度(crt.sh)用于子域名发现
- JS文件分析以查找密钥
- 多线程(默认10个工作线程)
- 输出至 findings_incremental.json
2. analyze_daemon.py — 分析器
- - 监控 findings_incremental.json
- 熵过滤以减少误报
- 两阶段LLM分析:
- 快速:qwen2.5-coder:1.5b
- 深度:glm-5:cloud
3. watchdog.py — 告警器
- - 监控关键发现
- 通过OpenClaw消息总线发送告警
设置
bash
安装工具
cd ~/workspace/bounty_hunting/tools
unzip subfinder.zip
unzip httpx.zip
unzip nuclei.zip
配置授权目标
echo example.com > ~/workspace/bounty
hunting/authorizedtargets.txt
echo *.example.com >> ~/workspace/bounty
hunting/authorizedtargets.txt
使用提示
对 [目标] 执行赏金狩猎。目标必须在授权列表中。
- 1. 确认 [目标] 已获授权
- 运行子域名枚举
- 扫描每个子域名以查找:
- JS中暴露的密钥
- 配置错误
- 已知漏洞
- 4. 使用LLM分析发现结果
- 生成报告至 ~/workspace/reports/security/[目标]/
目录结构
~/workspace/bounty_hunting/
├── authorized_targets.txt # 仅这些目标可被扫描
├── nightwatch.py # 主扫描器
├── analyze_daemon.py # LLM分析器
├── watchdog.py # 告警系统
├── findings_incremental.json # 原始发现
├── live_analysis.md # 分析结果
└── tools/
├── subfinder
├── httpx
└── nuclei
输出格式
报告保存至:~/workspace/reports/security/[目标]/YYYY-MM-DD.md
markdown
安全扫描 — [目标] — [日期]
范围
- - 授权目标:[目标]
- 发现的子域名:X
- 扫描的端点:Y
🔴 严重
- 1. 发现 — 严重级别 — 位置 — 建议
🟠 高危
- 1. 发现 — 严重级别 — 位置 — 建议
🟡 中危
- 1. 发现 — 严重级别 — 位置 — 建议
🟢 信息
- 1. 发现 — 严重级别 — 位置 — 建议
后续步骤
- 1. [建议操作]
安全防护
python
扫描前务必检查
def is_authorized(target):
with open(authorized_targets.txt) as f:
authorized = [line.strip() for line in f]
return any(target.endswith(auth) or target == auth for auth in authorized)
故障安全
if not is_authorized(target):
raise ValueError(f未授权:{target} 不在 authorized_targets.txt 中)
定时任务
bash
每天凌晨2点扫描(低流量时段)
0 2
* cd ~/workspace/bounty_hunting && python nightwatch.py
已知限制
- - 仅支持CPU(无CUDA)
- 速率限制可能降低扫描速度
- 熵检测存在一定误报