
用于对网站进行侦察和信息收集的安全工具。(python 3.x)
- 添加代理功能
- 重新定义优先级/任务
- 让我们调试证书子域结果
- 在扫描期间显示当前绕过编号("CB:")
- 圣诞节彩蛋 :)
- 选项 -nfs(非第一步)用于跳过最初的侦察步骤
- 扫描前使用 Google CSE
- 创建 WIKI
- 检测 HTML 网页中潜在的路径泄露
- 检测潜在的隐藏目录
(更多详情请参阅 CHANGELOG.md)
- git clone https://github.com/c0dejump/HawkScan.git && sudo python3 HawkScan/setup.py install
- pip(3) install -r requirements.txt
- python3 -m pip install -r requirements.txt
P1 是最重要的
[WIP] 多种排除,例如:--exclude 403,1337b [P1] [进行中](参见 示例)
[WIP] 通过某些代理进行匿名路由(http/s 代理列表)[P1] [进行中]
[WIP] 重建扫描报告 [P1]
[WIP] HExHTTP 在扫描前替换 "头部信息"
usage: hawkscan.py [-h] [-u URL] [-f FILE_URL] [-t THREAD] [--exclude EXCLUDE [EXCLUDE ...]] [--auto] [--update] [-w WORDLIST] [-b [BACKUP ...]] [-p PREFIX] [-H HEADER_] [-a USER_AGENT] [--redirect] [--auth AUTH] [--timesleep TS] [--proxie PROXIE] [-r] [-s SUBDOMAINS] [--js] [--nfs] [--ffs] [--notify] [-o OUTPUT] [-of OUTPUT_TYPE]
> General:
-u URL URL to scan [required]
-f FILE_URL file with multiple URLs to scan
-t THREAD Number of threads to use for URL Fuzzing. Default: 30
--exclude EXCLUDE [EXCLUDE ...] Exclude page, response code, response size. (Exemples: --exclude 500,337b)
--auto Automatic threads depending response to website. Max: 30
--update For automatic update
--lightmode For a just simple fuzzing 1 request per second & a new session for each request
--no-calib Disable the auto-calibration (soft-404 / wildcard false positives filter)
--flood FLOOD Mute a response seen more than N times on different paths (catch-all / WAF rule / error page). 0 to disable. Default: 5
--parallel PARALLEL With -f: number of websites scanned at the same time (each one with -t threads). Default: 3
--resume RUN_DIR Resume a stopped -f scan (done websites skipped). Ex: --resume sites/_multi_2026-10-29_09-31-21
--rate RATE Max requests per second for a website, all threads included (respect the program rules)
> Wordlist Settings:
-w WORDLIST Wordlist used for Fuzzing the desired webite. Default: dichawk.txt
-b Adding prefix/suffix backup extensions during the scan. (Exemples: exemple.com/~ex/, exemple.com/ex.php.bak...) /!\ beware, take more longer
-p PREFIX Add prefix in wordlist to scan
-e EXTENSIONS Extensions added to the words without extension, or 'auto' (detected stack). Ex: -e php,bak | -e auto
> Request Settings:
-H HEADER_ Add a header, several -H allowed. Ex: -H "Cookie: a=1; b=2" -H "Authorization: Bearer x"
-a USER_AGENT Choice user-agent. Default: Random
--redirect For scan with redirect response (301/302)
--auth AUTH HTTP authentification. (Exemples: --auth admin:admin)
--timesleep TS To define a timesleep/rate-limit if app is unstable during scan.
--proxy PROXY Proxy for all requests (Burp...) or a file of proxies. Ex: --proxy http://127.0.0.1:8080
> Tips:
-r Recursive dir/files
-s SUBDOMAINS Subdomain tester
--js For try to found keys, token, sensitive endpoints... in the javascript page
--nfs Not the first step of scan during the first running (waf, vhosts, wayback etc...)
--ffs Force the first step of scan during the first running (waf, vhosts, wayback etc...)
--notify For receveid notify when the scan finished (only work on linux)
> Export Settings:
-o OUTPUT Output to site_scan.txt (default in website directory)
-of OUTPUT_TYPE Output file format. Available formats: json, csv, txt
--html HTML report for -u (always made with -f: one report for all the websites)
//Basic
python hawkscan.py -u https://www.exemple.com/
//With specific dico
python hawkscan.py -u https://www.exemple.com/ -w dico_extra.txt
//with 30 threads
python hawkscan.py -u https://www.exemple.com/ -t 30
//With backup files scan
python hawkscan.py -u https://www.exemple.com/ -b
//With an exclude page
python hawkscan.py -u https://www.exemple.com/ --exclude profile.php
//With an exclude response code
python hawkscan.py -u https://www.exemple.com/ --exclude 403
//With an exclude bytes number
python hawkscan.py -u https://www.exemple.com/ --exclude 1337b
//With two excludes type
python hawkscan.py -u https://www.exemple.com/ --exclude 1337b,403
Layno (https://github.com/Clayno/) [技术协助]
Sanguinarius (https://twitter.com/sanguinarius_Bt) [技术协助]
Jamb0n69 (https://twitter.com/jamb0n69) [技术协助]
Cyber_Ph4ntoM (https://twitter.com/__PH4NTOM__) [测试人员及标志设计]
https://www.paypal.me/c0dejump
或者如果你想请我喝杯咖啡 :)
此脚本在第一步使用“WafW00f”检测 WAF (https://github.com/EnableSecurity/wafw00f)
此脚本使用“Sublist3r”扫描子域名 (https://github.com/aboul3la/Sublist3r)