SuperAPI AI Directory

dirsearch-fuzz

General & other

View repository

Updated 10-16 05:42

About this skill

dirsearch Web directory enumeration methodology

dirsearch is a feature-rich Web directory brute-force enumeration tool. Core advantages:Built-in high-quality wordlists + Multiple extension support + Recursive scanning + Intelligent filtering。

Project URL:https://github.com/maurosoria/dirsearch

Phase 1: Basic scanning

# 使用内置字典扫描
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
Silent output

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: Advanced options

# 自定义请求头
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: Output

# 简单文本
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

Common scenario quick reference

Scenario Command
PHP site dirsearch -u http://target -e php -x 404
Java site dirsearch -u http://target -e jsp,do,action -x 404
Backend finding dirsearch -u http://target -w admin-wordlist.txt
Backup files dirsearch -u http://target -e bak,old,zip,tar.gz,sql
Recursive deep scan dirsearch -u http://target -r --recursion-depth 3 -e php