Advanced web path and content discovery tool for brute-forcing directories and files on web servers.
dirsearch -u {target} -w {wordlist} -t {threads} ๐ target โ url ๐ wordlist โ /usr/share/wordlists/dirb/common.txt ๐ threads โ 30 dirsearch -u {target} -w {wordlist} -t {threads} Sandbox: execFile · Timeout: 1800s
web.discovery.path web.discovery.file web.fingerprint.directory web.content.brute | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
url | string | Yes | - | Target URL | -u, --url |
wordlist | file | No | - | Path to wordlist file | -w, --wordlist |
extensions | string | No | - | File extensions to search (comma-separated) | -e, --extensions |
threads | integer | No | 30 | Number of threads (default 30) | -t, --threads |
recursive | boolean | No | - | Enable recursive brute-force | -r, --recursive |
depth | integer | No | - | Maximum recursion depth | -R, --recursive-depth |
exclude-status | string | No | - | Exclude status codes (comma-separated) | -x, --exclude-status |
timeout | integer | No | - | Request timeout in seconds | --timeout |
follow-redirects | boolean | No | - | Follow HTTP redirects | --follow-redirects |
format | string | No | plain | Output format: json, xml, csv, plain | --format |
output | file | No | - | Output file path | -o, --output |
random-agent | boolean | No | - | Use random User-Agent headers | --random-agent |
proxy | string | No | - | Proxy URL (e.g. http://127.0.0.1:8080) | --proxy |
exclude_sizes | boolean | No | - | Exclude response sizes | --exclude-sizes |
exclude_texts | boolean | No | - | Exclude response texts | --exclude-texts |
f | boolean | No | - | Force extensions on all words | -f, --force-extensions |
l | boolean | No | - | URL list file | -l, --url-list |
max_response_size | boolean | No | - | Maximum response length | --max-response-size |
min_response_size | boolean | No | - | Minimum response length | --min-response-size |
| Type | Description | MIME | Schema | Trust |
|---|---|---|---|---|
web.discovery.results | Discovered directories and files | application/json | - | community |
Inputs
web.target.url Target URL
file.wordlist Wordlist for directory brute-forcing
web.file.extension File extensions to discover
Outputs
web.discovery.results Discovered paths and status codes
network_traffic Produces
web.discovery.resultsConsumes
web.target.urlfile.wordlistweb.file.extension| Resource | Value |
|---|---|
| CPU | medium |
| Memory | 128 MB |
| Network | medium |
| Disk I/O | low |
Basic directory scan with common wordlist
dirsearch -u https://example.com -w /usr/share/wordlists/dirb/common.txt Scan with file extensions for web technologies
dirsearch -u https://example.com -e php,asp,html,js -t 50 Recursive scan with depth limit
dirsearch -u https://example.com -r -R 3 -t 20 Exclude 404 and 403 status codes
dirsearch -u https://example.com -x 404,403 Output results to JSON with random user-agent
dirsearch -u https://example.com --format json -o results.json --random-agent Scan through a proxy (e.g. Burp Suite)
dirsearch -u https://example.com --proxy http://127.0.0.1:8080 Dirsearch is an advanced command-line tool designed to brute-force directories and files in web servers. It is commonly used for content discovery and hidden resource enumeration.
# Basic scan
dirsearch -u https://example.com -w /usr/share/wordlists/dirb/common.txt
# With file extensions and recursion
dirsearch -u https://example.com -e php,html -r -R 2
# Output to JSON with proxy
dirsearch -u https://example.com --format json -o results.json --proxy http://127.0.0.1:8080
--random-agent to avoid simple User-Agent filtering