Anas-Magane/AutoBugBounty
GitHub: Anas-Magane/AutoBugBounty
一款 Bug Bounty 自动化侦察框架,用单个 Python 脚本编排十余种安全工具完成全流程攻击面信息收集并生成结构化报告。
Stars: 0 | Forks: 0
# AutoScan — 传奇的 Bug Bounty 自动化框架
```
▄████████ ███ █▄ ███ ▄██████▄ ▄████████ ▄████████ ▄████████ ███▄▄▄▄
███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███ ███ ███ ███▀▀▀██▄
███ ███ ███ ███ ▀███▀▀██ ███ ███ ███ █▀ ███ █▀ ███ ███ ███ ███
███ ███ ███ ███ ███ ▀ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███ ███
▀███████████ ███ ███ ███ ███ ███ ▀███████████ ███ ▀▀███▀▀▀▀▀ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███ █▄ ▀███████████ ███ ███
███ ███ ███ ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███ ███ ███
███ █▀ ████████▀ ███▀ ▀██████▀ ▄████████▀ ████████▀ ███ ███ ▀█ █▀
```
## 概述
AutoScan 自动执行专业 Bug Bounty 猎人进行的每一个侦察阶段。只需运行一个命令,即可获得一个结构化的工作空间,包含子域名列表、状态码分类、重定向链、技术指纹、CVE 命中、HTTP 方法发现、Cookie 转储、目录暴力破解结果、发现的参数、JS 密钥泄露以及合并的最终报告 —— 所有内容都井然有序,随时可供手动利用。
| | |
|---|---|
| **作者** | Anas Magane |
| **YouTube** | [Anas Education](https://www.youtube.com/@AnasEducation) |
| **LinkedIn** | [anas-magane](https://ma.linkedin.com/in/anas-magane-3aa287262) |
| **GitHub** | [Anas-Magane](https://github.com/Anas-Magane) |
| **语言** | Python 3.10+ |
| **许可证** | MIT |
## 流程(10 个步骤)
| 步骤 | 名称 | 工具 |
|------|------|-------|
| 0 | 工作空间设置 + 依赖检查 | — |
| 1 | 子域名枚举 | subfinder, assetfinder, SecurityTrails API, httpx |
| 1b | 重定向链跟随器 | curl |
| 2 | robots.txt 发现 | curl |
| 3 | 技术指纹识别 | whatweb |
| 4 | Nuclei CVE 扫描 | nuclei |
| 5 | HTTP 方法审计(OPTIONS / TRACE) | curl |
| 6 | Cookie & 存储转储 | curl, playwright |
| 7 | 目录暴力破解(并行 ×10) | ffuf, gobuster |
| 8 | 参数发现(并行 ×7) | arjun |
| 9 | JS 文件密钥扫描器 | curl + 正则表达式引擎 |
| 10 | 生成最终报告(`all_in_one.md`) | — |
## 环境要求
### 系统工具
```
# Go 工具(通过 go install 安装)
subfinder assetfinder httpx nuclei ffuf
# Package manager 工具
sudo apt-get install -y gobuster whatweb jq curl
# Python 工具
pip3 install arjun playwright --break-system-packages
python3 -m playwright install chromium
```
### 字典表(用于第 7 步)
```
sudo apt-get install -y seclists dirb dirbuster
```
AutoScan 会在运行时自动检测可用的工具。缺失的工具会被报告,并且相应的步骤会被平滑跳过 —— 扫描将继续使用现有可用的工具。
## 安装说明
```
git clone https://github.com/Anas-Magane/AutoBugBounty.git
cd AutoBugBounty
chmod +x autoscan.py
```
不需要 pip 需求文件 —— 脚本仅使用 Python 标准库;外部依赖项是各种侦察工具本身。
## 使用说明
### 基础扫描
```
python3 autoscan.py -u target.com
```
### 自定义速度(1=慢速/隐蔽 ... 5=快速/激进)
```
python3 autoscan.py -u target.com -s 2
```
### 自定义请求头(例如已认证的会话)
```
python3 autoscan.py -u target.com -h "Cookie: session=abc123" -h "Authorization: Bearer TOKEN"
```
### 通过代理(Burp Suite)
```
python3 autoscan.py -u target.com --proxy http://127.0.0.1:8080
```
### 设置你自己的 SecurityTrails API key
```
python3 autoscan.py --set-api-key YOUR_ST_KEY
```
### 完整示例
```
python3 autoscan.py -u example.com -s 3 -h "Cookie: auth=xyz" --proxy http://127.0.0.1:8080
```
## 速度等级
| 等级 | 请求间隔时间 | 适用场景 |
|-------|----------------------|----------|
| 1 | 3.0 s | 极度隐蔽,WAF 绕过 |
| 2 | 1.5 s | 隐蔽 |
| **3** | **0.7 s** | **默认 —— 均衡** |
| 4 | 0.3 s | 快速 |
| 5 | 0.0 s | 极速(激进) |
## 输出结构
每次扫描都会创建一个带有时间戳的工作空间:
```
BugBounty__/
├── subdomains/
│ ├── subfinder.txt # Raw subfinder output
│ ├── assetfinder.txt # Raw assetfinder output
│ ├── securitytrails.txt # Raw SecurityTrails output
│ ├── all_subs.txt # Merged + deduplicated
│ ├── -full-subs.txt # Fully-qualified subdomains
│ ├── -live-subs.txt # Confirmed live (httpx)
│ ├── 200.txt / 301.txt / 403.txt ... # Per-status-code buckets
│ └── redirects.md # Full redirect chains
├── robots/
│ ├── robots.md # Aggregated report
│ └── .txt # Per-host robots.txt
├── technologies/
│ └── technology.md # whatweb fingerprints
├── nuclei/
│ └── nuclei-cves.txt # CVE scan results
├── http_methods/
│ └── http_methods.md # OPTIONS / TRACE / method results
├── cookies/
│ ├── cookies.md # Aggregated report
│ ├── _cookies.txt # HTTP header cookies
│ └── _browser.txt # Playwright browser storage
├── bruteforce/
│ ├── _ffuf_small.json
│ ├── _ffuf_big.json
│ └── _gobuster_*.txt
├── parameters/
│ ├── parameters.md # Aggregated report
│ └── _params.json # Per-URL arjun output
├── js_secrets/
│ └── js_secrets.md # Leaked keys / tokens / passwords
└── all_in_one.md # Final merged report (start here)
```
## 配置说明
配置存储在 `~/.autoscan/config.ini` 中:
```
[securitytrails]
api_key = YOUR_KEY_HERE
[general]
speed = 3
```
## 扫描之后 —— 手动检查清单
生成的 `all_in_one.md` 包含一份检查清单,但需要手动调查的关键事项如下:
- [ ] 使用 **Wappalyzer** 识别确切的技术版本
- [ ] 测试 `403`/`401` 子域名是否存在身份验证绕过
- [ ] 在浏览器中查看 `robots.txt` 的禁止(disallow)路径
- [ ] 立即轮换/撤销在 JS 文件中发现的任何密钥
- [ ] 测试启用了 **TRACE** 的主机是否存在 XST(跨站追踪)
- [ ] 对发现的参数进行 Fuzz 测试以挖掘 SQLi / XSS / SSRF / IDOR
- [ ] 利用 Nuclei CVE 发现的漏洞
- [ ] 检查 Cookie 是否缺少 `HttpOnly` / `Secure` / `SameSite` 标志
## 法律免责声明
**仅对你拥有明确书面测试授权的目标使用此工具。**
未经授权的扫描是非法的。此工具专为授权的 Bug Bounty 项目、CTF 竞赛和安全研究而构建。
## 许可证
MIT © 2025 Anas Magane
标签:运行时操纵, 逆向工具