dirsearch-fuzz
$
npx mdskill add wgpsec/AboutSecurity/dirsearch-fuzzEnumerate web directories and find hidden files with dirsearch.
- Discovers hidden paths, backups, and sensitive files via brute force.
- Integrates with high-quality built-in dictionaries for scanning.
- Executes recursive scans with configurable extensions and filters.
- Delivers filtered results based on HTTP status codes and response sizes.
SKILL.md
.github/skills/dirsearch-fuzzView on GitHub ↗
--- name: dirsearch-fuzz description: "使用 dirsearch 进行 Web 目录和文件暴力枚举。当需要发现隐藏的目录、文件、后台路径、备份文件时使用。dirsearch 内置高质量字典,支持多扩展名、递归扫描、状态码过滤。任何涉及目录枚举、路径发现、后台查找、敏感文件发现的场景都应使用此技能" metadata: tags: "dirsearch,directory,fuzz,目录扫描,路径枚举,后台发现,文件发现,备份文件,web" category: "tool" --- # dirsearch Web 目录枚举方法论 dirsearch 是功能丰富的 Web 目录暴力枚举工具。核心优势:**内置高质量字典** + **多扩展名支持** + **递归扫描** + **智能过滤**。 项目地址:https://github.com/maurosoria/dirsearch ## Phase 1: 基本扫描 ```bash # 使用内置字典扫描 dirsearch -u http://target.com # 指定扩展名 dirsearch -u http://target.com -e php,asp,aspx,jsp # 指定字典 dirsearch -u http://target.com -w /path/to/wordlist.txt # 静默输出 dirsearch -u http://target.com --quiet ``` ## Phase 2: 过滤和匹配 ```bash # 排除状态码 dirsearch -u http://target.com -x 404,403,500 # 只显示特定状态码 dirsearch -u http://target.com -i 200,301,302 # 按响应大小过滤 dirsearch -u http://target.com --exclude-sizes 0B,4KB # 按响应内容过滤 dirsearch -u http://target.com --exclude-texts "Not Found" # 递归扫描(发现目录后继续扫描子目录) dirsearch -u http://target.com -r --recursion-depth 3 ``` ## Phase 3: 高级选项 ```bash # 自定义请求头 dirsearch -u http://target.com -H "Cookie: session=abc" # 带认证 dirsearch -u http://target.com --auth admin:password --auth-type basic # 使用代理 dirsearch -u http://target.com --proxy http://127.0.0.1:8080 # 控制线程 dirsearch -u http://target.com -t 50 # 批量目标 dirsearch -l urls.txt -e php,asp # 随机 User-Agent dirsearch -u http://target.com --random-agent # 强制扩展名(不使用 %EXT% 占位符) dirsearch -u http://target.com -f -e php,asp ``` ## Phase 4: 输出 ```bash # 简单文本 dirsearch -u http://target.com -o results.txt --format plain # JSON 输出 dirsearch -u http://target.com -o results.json --format json # CSV 输出 dirsearch -u http://target.com -o results.csv --format csv ``` ## 常用场景速查 | 场景 | 命令 | |------|------| | PHP 站点 | `dirsearch -u http://target -e php -x 404` | | Java 站点 | `dirsearch -u http://target -e jsp,do,action -x 404` | | 后台查找 | `dirsearch -u http://target -w admin-wordlist.txt` | | 备份文件 | `dirsearch -u http://target -e bak,old,zip,tar.gz,sql` | | 递归深扫 | `dirsearch -u http://target -r --recursion-depth 3 -e php` |
More from wgpsec/AboutSecurity
- 401-403-bypass401/403 访问拒绝绕过方法论。当遇到管理后台、API 端点返回 401/403 Forbidden 时使用。覆盖路径操纵、HTTP 方法篡改、Header 注入、协议降级、组合攻击
- ad-acl-abuseActive Directory ACL 滥用攻击方法论。当 BloodHound 发现 GenericAll/WriteDACL/WriteOwner/GenericWrite/ForceChangePassword 等危险 ACE 时使用。覆盖 ACE 枚举、权限滥用链、Shadow Credentials、RBCD 攻击
- ad-delegation-attackKerberos 委派攻击(非约束/约束/RBCD)。当 BloodHound 发现委派配置、或已获取有 SPN 的服务账号/机器账号控制权时使用。通过 S4U 协议滥用可实现跨服务模拟任意用户,常用于域内权限提升和横向移动。
- ad-domain-attackActive Directory 域环境攻击全链路。当目标主机在域环境中(systeminfo 显示 Domain 非 WORKGROUP)、发现 88/389/636 端口、或获取到域用户凭据时使用。覆盖域信息收集、用户枚举、Kerberoasting、AS-REP Roasting、委派攻击、ACL 滥用、DCSync、Golden/Silver Ticket
- ad-persistenceAD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton Key/DSRM/AdminSDHolder)、DCShadow/GoldenGMSA高级技术、清理命令与检测规避
- ad-trust-attack域信任关系攻击。当目标存在多域/多林环境时使用。包含父子域提权(Golden Ticket + ExtraSid)、跨林攻击(SID History/MSSQL Trust Links)、单向信任利用。已获取子域 Domain Admin 或发现信任关系时优先加载。
- adcs-certipy-attackActive Directory Certificate Services (ADCS) 证书攻击。当发现域内有 CA 服务器、ADCS Web Enrollment、证书模板配置错误时使用。覆盖 ESC1-ESC11 所有证书滥用路径、Certipy 工具链、证书伪造、NTLM 中继到 ADCS。发现 ADCS/CA/证书/certsrv 相关内容时一定要使用此技能
- adinfo-enum使用 Adinfo 进行 Active Directory 信息收集。当获得域用户凭据后需要快速收集域环境信息时使用。Adinfo 是一个快速 AD 信息收集工具,一条命令输出域控列表、域管用户、信任关系、GPO、SPN、委派配置等关键信息——比手动 LDAP 查询快得多。发现域环境后第一步信息收集使用此技能
- agent-security|
- ai-data-security|