
Executar e salvar automaticamente varreduras ffuf para múltiplos 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 é um ótimo dirbuster, mas executá-lo contra múltiplos IPs e portas é um processo muito manual com muito tempo ocioso entre as varreduras. Este script tenta automatizar esse processo e eliminar o tempo ocioso entre as varreduras.
Se atacar múltiplos alvos:
Execute o Nmap e encontre portas abertas
Revise os resultados do Nmap e crie uma lista IP:porta, uma por linha
Execute o AutoDirbuster contra as portas abertas
O AutoDirbuster determinará se o serviço é baseado em HTTP
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt --combineSe atacar um único alvo:
python AutoDirbuster.py -u example.com:80 -w my_wordlist.txtOpções úteis incluem:
Especifique a flag --help para uma lista completa de opções.
O programa pode aceitar duas fontes de dados:
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() do PythonCertifique-se do seguinte:
requirements.txt estão instaladas?ffuf está instalado e no seu PATH do 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
| Opção | Finalidade |
|---|
| --dns | Resolver IPs para hostnames |
| --extensions | Extensões de arquivo a usar durante a varredura |
| --rate | Taxa de requisições por segundo |
| --timeout | Definir um valor de timeout para cada host em minutos |
| --match-codes | Corresponder códigos de status HTTP fornecidos |
| --combine | Combinar todos os resultados CSV em um único arquivo após a varredura |
| --quiet | Suprimir a saída stderr do ffuf (equivalente a 2>/dev/null) |
| --custom-option | Especificar opção do ffuf que o AutoDirbuster não suporta por padrão |