一个用于漏洞赏金侦察的Bash脚本和Docker镜像,适合无头运行。资源占用低,信息输出丰富。
觉得有用?BugBountyScanner帮你赚到了赏金?
⚠ 注意:强烈建议通过VPN运行脚本。
建议从服务器(VPS或家庭服务器)运行BugBountyScanner,而不是从你的终端。它被设计为资源占用低,适合对较大范围进行可能持续数天的扫描。脚本可独立运行。
你可以选择以Docker镜像方式运行,或在Debian/Ubuntu系统上直接运行(见下文)。只需启动脚本,然后就不用管了!运行脚本的时间从几分钟(对于非常小的范围,<10个子域名)到几天(对于非常大的范围,>20000个子域名)不等。有一个“快速模式”标志,可以跳过一些耗时的任务,如漏洞识别、端口扫描和Web端点爬取。
Docker Hub链接:https://hub.docker.com/r/chvancooten/bugbountyscanner。每当BugBountyScanner有更新且所有测试通过时,CI/CD会将镜像推送到`:latest`标签。
你可以按如下方式从Docker Hub拉取并运行Docker镜像。
docker pull chvancooten/bugbountyscanner
docker run -v $(pwd):/root/bugbounty -it chvancooten/bugbountyscanner /bin/bash
也可以使用Docker-Compose。
version: "3"
services:
bugbountybox:
container_name: BugBountyBox
stdin_open: true
tty: true
image: chvancooten/bugbountyscanner:latest
environment:
- telegram_api_key=X
- telegram_chat_id=X
volumes:
- ${USERDIR}/docker/bugbountybox:/root/bugbounty
# VPN recommended :)
network_mode: service:your_vpn_container
depends_on:
- your_vpn_container
或者,你也可以从源码构建镜像。
git clone https://github.com/chvancooten/BugBountyScanner.git
cd BugBountyScanner
docker build .
如果你更倾向于手动运行脚本,也可以。
ℹ 注意:该脚本基于 Ubuntu 20.04 构建并测试。在其他发行版上效果可能有所差异,但应该能在大多数基于 Debian 的系统(如 Kali Linux)上运行。
git clone https://github.com/chvancooten/BugBountyScanner.git
cd BugBountyScanner
cp .env.example .env # 根据实际情况编辑
chmod +x BugBountyScanner.sh setup.sh
./setup.sh -t /custom/tools/dir # 安装会自动触发,但也可以手动运行
./BugBountyScanner.sh --help
./BugBountyScanner.sh -d target1.com -d target2.net -t /custom/tools/dir --quick
使用 --help 或 -h 查看简短的帮助菜单。
root@dockerhost:~# ./BugBountyScanner.sh -h
BugBountyHunter - Automated Bug Bounty reconnaissance script
./BugBountyScanner.sh [options]
options:
-h, --help show brief help
-t, --toolsdir tools directory (no trailing /), defaults to '/opt'
-q, --quick perform quick recon only (default: false)
-d, --domain <domain> top domain to scan, can take multiple
-o, --outputdirectory parent output directory, defaults to current directory (subfolders will be created per domain)
-w, --overwrite overwrite existing files. Skip steps with existing files if not provided (default: false)
Note: 'ToolsDir', 'telegram_api_key' and 'telegram_chat_id' can be defined in .env or through Docker environment variables.
example:
./BugBountyScanner.sh --quick -d google.com -d uber.com -t /opt
amassaquatonednsutilsffufgauGf(搭配 Gf-Patterns)GogospiderhttpxnmapNuclei(搭配 Nuclei-Templates)qsreplacesubjack