Ultimate Dirsearch Cheat Sheet
Ultimate Dirsearch Cheat Sheet
A reference guide for the advanced web path scanner. Find hidden directories and files fast.
1. Basic Syntax
The fundamental structure of a Dirsearch command.
Essential Flags
-u, --url [URL]: Target URL-w, --wordlist [FILE]: Wordlist path-e, --extensions [EXT]: File extensions-t, --threads [N]: Thread count
Basic Scan
dirsearch -u http://example.com: Default scandirsearch -u https://example.com -w wordlist.txt: Custom wordlistdirsearch -u http://example.com -e php: PHP filesdirsearch -u http://example.com -t 50: 50 threads
Dirsearch uses
db/dicc.txt by default. For better results, use SecLists or custom wordlists with -w /path/to/wordlist.txt.
2. Wordlists & Extensions
Custom Wordlist
Specify a custom wordlist for directory/file discovery.
Multiple Extensions
Test multiple file extensions simultaneously.
Force Extensions
Force extensions on every word in wordlist.
Lowercase Wordlist
Convert all words to lowercase.
Capitalize Words
Capitalize first letter of each word.
| Wordlist Flag | Description |
|---|---|
-w, --wordlist | Path to wordlist file |
-e, --extensions | File extensions to test |
-f, --force-extensions | Force extensions on all words |
--lowercase | Convert words to lowercase |
--capitalize | Capitalize first letter |
--uppercase | Convert words to uppercase |
3. Filtering & Status Codes
Exclude Status Codes
Hide specific HTTP status codes from results.
Include Status Codes
Show only specific HTTP status codes.
Exclude by Size
Hide responses with specific content length.
Exclude by Text
Hide responses containing specific text.
Exclude by Regex
Hide responses matching regex pattern.
| Filter Flag | Description |
|---|---|
-x, --exclude | Exclude status codes |
-i, --include | Include only status codes |
--exclude-sizes | Exclude by response size |
--exclude-texts | Exclude by text content |
--exclude-regex | Exclude by regex pattern |
--exclude-redirects | Exclude redirect responses |
4. Advanced Features
Recursive Scanning
Scan discovered directories recursively.
Deep Recursive
Set maximum recursion depth.
Custom Headers
Add custom headers for authenticated scanning.
Custom User Agent
Set custom user agent string.
Random User Agent
Use random user agents from file.
Proxy Support
Route traffic through proxy.
HTTPS Certificate Handling
Skip SSL certificate verification.
IP Scan
Scan IP instead of resolving domain.
Use
-r -R 3 for controlled recursion. Too deep recursion can generate massive amounts of requests and take hours to complete.
5. Performance Tuning
Thread Control
Increase threads for faster scanning.
Timeout Configuration
Set timeout for slow servers.
Delay Between Requests
Add delay to avoid rate limiting.
Retry Failed Requests
Retry failed requests automatically.
Max Request Rate
Limit requests per second.
Persistent Connection
Use HTTP keep-alive connections.
| Performance Flag | Description |
|---|---|
-t, --threads [N] | Number of threads (default 20) |
--timeout [SEC] | Request timeout (default 10) |
--delay [SEC] | Delay between requests |
--retries [N] | Retry failed requests |
--max-rate [N] | Max requests per second |
--persistent | Keep connections alive |
High thread counts (-t 200) can cause false positives and trigger WAF blocks. Use --delay and --max-rate for stealth scanning on sensitive targets.
6. Output & Reports
Simple Output
Save results to a plain text file.
JSON Report
Export results in JSON format.
XML Report
Export results in XML format.
CSV Report
Export results in CSV format.
Markdown Report
Export results in Markdown format.
Silent Mode
Output only results, no banners.
Full Report
Generate all report formats at once.
| Output Flag | Description |
|---|---|
-o, --output [FILE] | Plain text output |
--json-report [FILE] | JSON format report |
--xml-report [FILE] | XML format report |
--csv-report [FILE] | CSV format report |
--markdown-report [FILE] | Markdown report |
--quiet | Silent output mode |
Generate multiple report formats simultaneously for different use cases - JSON for automation, CSV for spreadsheet analysis, and plain text for quick review.
Post a Comment