dirsearch
dirsearch is a Python script very popular in CTFs and pentesting for discovering hidden directories and files. Highly configurable, great for complex sites (PHP, JSP, ASP...): custom headers, user-agents, cookies, and automatic extension testing.
| Type | CLI (Python) |
| Platform | Kali / Linux |

Commands
| Command | What it does |
|---|---|
dirsearch -u http://IP-or-site/ | Simple scan |
dirsearch -u http://IP/ -w /usr/share/wordlists/dirb/common.txt | Use a specific wordlist |
dirsearch -u http://IP/ -e php,txt,html | Test specific extensions |
dirsearch -u http://IP/ -w wordlist.txt -i 200,301,403 | Filter by HTTP status codes |
dirsearch -u http://IP/ -w wordlist.txt -o results.txt | Save results |
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.
dirsearch es un script en Python muy popular en CTFs y pentesting para descubrir directorios y archivos ocultos. Muy configurable, ideal para webs complejas (PHP, JSP, ASP...): permite personalizar cabeceras, user-agents, cookies, y probar extensiones automáticamente.
| Tipo | CLI (Python) |
| Plataforma | Kali / Linux |

Comandos
| Comando | Qué hace |
|---|---|
dirsearch -u http://IP-o-web/ | Escaneo simple |
dirsearch -u http://IP/ -w /usr/share/wordlists/dirb/common.txt | Usar una wordlist específica |
dirsearch -u http://IP/ -e php,txt,html | Probar extensiones concretas |
dirsearch -u http://IP/ -w wordlist.txt -i 200,301,403 | Filtrar por códigos HTTP |
dirsearch -u http://IP/ -w wordlist.txt -o resultados.txt | Guardar resultados |
Uso responsable
Estos comandos son para entornos propios o con autorización explícita por escrito (laboratorios, CTF, auditorías contratadas). Usarlos contra infraestructura ajena sin permiso es ilegal en la mayoría de países.