1. 精准扫描策略自定义字典组合# 合并多个字典文件type db\common.txt db\php.txt custom_dict.txt# 使用自定义字典扫描python dirsearch.py -u https://example.com -w db\common.txt,db\php.txt扩展名智能替换# 将字典中所有.php替换为.aspxpython dirsearch.py -u https://example.com -w db\php.txt -e aspx --force-extensions递归扫描深度控制# 递归扫描2层深度python dirsearch.py -u https://example.com -r -R22. 高级请求配置携带Cookie扫描# 命令行直接指定Cookiepython dirsearch.py -u https://example.com --cookie session_idxxx; useradmin# 从文件加载Cookiepython dirsearch.py -u https://example.com --headers-file cookies.txt自定义请求头python dirsearch.py -u https://example.com -H Referer: https://google.com -H X-Forwarded-For: 192.168.1.1POST请求扫描python dirsearch.py -u https://example.com/api/auth \-m POST \-H Content-Type: application/json \-d {username:admin,password:***}3. 结果分析与处理结果过滤与导出只保留有效结果并保存# 仅保留200/302状态码结果保存为JSON格式python dirsearch.py -u https://example.com \-i 200,302 \--output-formats json \--output-file results.json批量扫描目标从文件加载多个目标python3 dirsearch.py \-l targets.txt \-w db/common.txt \-e php,html,js \--output-formats csv \--output-file batch_results.csv \-q --no-color静默模式输出仅显示关键结果减少日志干扰python dirsearch.py -u https://example.com -q