
Alternativa moderna a dirbuster/dirb
Dirstalk è un'applicazione multi-thread progettata per eseguire attacchi di brute force sui percorsi dei server web.
Lo strumento offre funzionalità simili a quelle fornite da dirbuster e dirb.
L'applicazione è auto-documentante: lanciando dirstalk -h restituirà tutti i comandi disponibili con una breve descrizione; puoi ottenere l'aiuto per ogni comando eseguendo distalk <command> -h.
Ad esempio dirstalk result.diff -h
Per eseguire una scansione devi fornire almeno un dizionario e un URL:
dirstalk scan http://someaddress.url/ --dictionary mydictionary.txt
Come accennato prima, per vedere tutte le opzioni disponibili per il comando di scansione, puoi semplicemente chiamare il comando con il flag -h:
dirstalk scan -h
dirstalk scan http://someaddress.url/ \
--dictionary mydictionary.txt \
--http-methods GET,POST \
--http-timeout 10000 \
--scan-depth 10 \
--threads 10 \
--socks5 127.0.0.1:9150 \
--cookie name=value \
--use-cookie-jar \
--user-agent my_user_agent \
--header "Authorization: Bearer 123"
--cookie stringArray cookie to add to each request; eg name=value (can be specified multiple times)
-d, --dictionary string dictionary to use for the scan (path to local file or remote url)
--header stringArray header to add to each request; eg name=value (can be specified multiple times)
-h, --help help for scan
--http-cache-requests cache requests to avoid performing the same request multiple times within the same scan (EG if the server reply with the same redirect location multiple times, dirstalk will follow it only once) (default true)
--http-methods strings comma separated list of http methods to use; eg: GET,POST,PUT (default [GET])
--http-statuses-to-ignore ints comma separated list of http statuses to ignore when showing and processing results; eg: 404,301 (default [404])
--http-timeout int timeout in milliseconds (default 5000)
--out string path where to store result output
--scan-depth int scan depth (default 3)
--socks5 string socks5 host to use
-t, --threads int amount of threads for concurrent requests (default 3)
--use-cookie-jar enables the use of a cookie jar: it will retain any cookie sent from the server and send them for the following requests
--user-agent string user agent to use for http requests
docker run -d -p 127.0.0.1:9150:9150 stefanoj3/tordock:latest e poi, quando si avvia una scansione, specificare il flag --socks5 127.0.0.1:9150)Dirstalk può anche generare i propri dizionari, utili ad esempio se si vuole verificare se un insieme specifico di file è disponibile su un determinato server web.
dirstalk dictionary.generate /path/to/local/files --out mydictionary.txt
Il risultato verrà stampato su stdout se non viene specificato il flag out.
Puoi scaricare una release da qui oppure utilizzare un'immagine docker (ad esempio docker run stefanoj3/dirstalk dirstalk <cmd>).
Se stai utilizzando una distribuzione Linux basata su Arch, puoi ottenerlo tramite AUR: https://aur.archlinux.org/packages/dirstalk/
Esempio:
yay -S aur/dirstalk
Per lo sviluppo locale è sufficiente avere make e golang disponibili e il GOPATH configurato correttamente.
Quindi basta clonare il progetto, entrare nella cartella e:
make dep # to fetch dependencies
make tests # to run the test suite
make check # to check for any code style issue
make fix # to automatically fix the code style using goimports
make build # to build an executable for your host OS (not tested under windows)
make help
stamperà una descrizione di ogni comando disponibile nel Makefile.
Vuoi aggiungere una funzionalità? Correggere un bug? Fai un fork e crea una PR.