
Ejecutar y guardar automáticamente escaneos de ffuf para múltiples IPs
___ __ ____ _ __ __
/ | __ __/ /_____ / __ \(_)____/ /_ __ _______/ /____ _____
/ /| |/ / / / __/ __ \/ / / / / ___/ __ \/ / / / ___/ __/ _ \/ ___/
/ ___ / /_/ / /_/ /_/ / /_/ / / / / /_/ / /_/ (__ ) /_/ __/ /
/_/ |_\__,_/\__/\____/_____/_/_/ /_.___/\__,_/____/\__/\___/_/
git clone https://github.com/NetSPI/AutoDirbuster.git
cd AutoDirbuster && pip3 install -r requirements.txt
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt
Ffuf es un gran buscador de directorios, pero ejecutarlo contra múltiples IPs y puertos es un proceso muy manual con mucho tiempo de inactividad entre escaneos. Este script intenta automatizar ese proceso y elimina el tiempo de inactividad entre escaneos.
Si atacas múltiples objetivos:
Ejecuta Nmap y encuentra puertos abiertos
Revisa los resultados de Nmap y crea una lista IP:puerto, una por línea
Ejecuta AutoDirbuster contra los puertos abiertos
AutoDirbuster determinará si el servicio está basado en HTTP
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt --combineSi atacas un único objetivo:
python AutoDirbuster.py -u example.com:80 -w my_wordlist.txtOpciones útiles incluyen:
Especifica la bandera --help para una lista completa de opciones.
El programa puede aceptar dos fuentes de datos:
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txtpython AutoDirbuster.py -u example.com:80 -w my_wordlist.txtffuf-report-{proto}_{target}_{port}subprocess.Popen() de PythonAsegúrate de lo siguiente:
requirements.txt?ffuf instalado y en tu PATH del sistema?
ffuf -Vpython -V# python AutoDirbuster.py --help
usage:
___ __ ____ _ __ __
/ | __ __/ /_____ / __ \(_)____/ /_ __ _______/ /____ _____
/ /| |/ / / / __/ __ \/ / / / / ___/ __ \/ / / / ___/ __/ _ \/ ___/
/ ___ / /_/ / /_/ /_/ / /_/ / / / / /_/ / /_/ (__ ) /_/ __/ /
/_/ |_\__,_/\__/\____/_____/_/_/ /_.___/\__,_/____/\__/\___/_/
AutoDirbuster.py [options] {target file}
Automatically run and save ffuf scans for multiple IPs
options:
-h, --help show this help message and exit
AutoDirbuster options:
target Target file with IP:port, one per line
-u, --url Single target mode, positional argument is target in IP:port
format
-f, --force Force mode; don't check if report file exists, this will result in
previous reports being overwritten
--dns Automatically resolve IP address to hostname to use during dirbust
--debug Show debugging information
--combine Combine all CSV results into a single file after scanning
--quiet Suppress ffuf's stderr output (equivalent of 2>/dev/null);
AutoDirbuster's own output and ffuf stdout are unaffected
ffuf options:
-w WORDLIST, --wordlist WORDLIST
Wordlist to use for list based brute force
-X METHOD, --method METHOD
HTTP method to use; default=GET
-e EXTENSIONS, --extensions EXTENSIONS
File extension list (e.g.: "asp,aspx"); default is None
-t THREADS, --threads THREADS
Override the default number of ffuf threads
--rate RATE Rate of requests per second
-to TIMEOUT, --timeout TIMEOUT
Set a timeout value for each host in minutes; default is None
-fr, --follow-redirects
Follow redirects; default is False
-r, --recursive Recursive mode; default is False
-s STARTPOINT, --startpoint STARTPOINT
Start point of the scan; default=/
-of OUTPUT_FORMAT, --output-format OUTPUT_FORMAT
Output format to write results to; default=csv
-mc MATCH_CODES, --match-codes MATCH_CODES
Match HTTP status codes;
default=200,204,301,302,307,401,403,405,500
-nac, --no-auto-calibrate
Do not automatically calibrate filtering options
-H HEADER, --header HEADER
HTTP header "Name: Value", separated by colon
--custom-option CUSTOM_OPTION [CUSTOM_OPTION ...]
Specify ffuf option that AutoDirbuster doesn't support by default.
Argument should be a key/value pair separated by a comma with no
leading '-', example: --custom-option=ml,1. If the provided
argument is a boolean, provide an empty value: --custom-option=sa,
Examples:
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt
python AutoDirbuster.py -st example.com:80 -w my_wordlist.txt -mc 200,500
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt -r -e "php,html" --dns
| Opción | Propósito |
|---|
| --dns | Resolver IPs a nombres de host |
| --extensions | Extensiones de archivo a usar al escanear |
| --rate | Tasa de peticiones por segundo |
| --timeout | Establecer un valor de tiempo de espera para cada host en minutos |
| --match-codes | Coincidir con los códigos de estado HTTP proporcionados |
| --combine | Combinar todos los resultados CSV en un solo archivo después del escaneo |
| --quiet | Suprimir la salida stderr de ffuf (equivalente a 2>/dev/null) |
| --custom-option | Especificar una opción de ffuf que AutoDirbuster no soporta por defecto |