
Современная альтернатива dirbuster/dirb
Dirstalk — это многопоточное приложение, предназначенное для подбора путей на веб-серверах.
Инструмент содержит функциональность, аналогичную предлагаемой в dirbuster и dirb.
Здесь вы можете увидеть его в работе:
Приложение самодокументируемое: запуск dirstalk -h вернет все доступные команды с кратким описанием, вы можете получить справку по каждой команде, выполнив distalk <command> -h.
Пример: dirstalk result.diff -h
Для выполнения сканирования необходимо предоставить как минимум словарь и URL:
dirstalk scan http://someaddress.url/ --dictionary mydictionary.txt
Как упоминалось ранее, чтобы увидеть все флаги, доступные для команды сканирования, вы можете просто вызвать команду с флагом -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, а затем при запуске сканирования укажите следующий флаг: --socks5 127.0.0.1:9150)Dirstalk также может создавать собственные словари, что полезно, например, если вы хотите проверить, доступен ли определенный набор файлов на заданном веб-сервере.
dirstalk dictionary.generate /path/to/local/files --out mydictionary.txt
Результат будет выведен в stdout, если флаг out не указан.
Вы можете скачать релиз здесь или использовать Docker-образ. (например, docker run stefanoj3/dirstalk dirstalk <cmd>)
Если вы используете дистрибутив Linux на основе Arch, вы можете получить его через AUR: https://aur.archlinux.org/packages/dirstalk/
Пример:
yay -S aur/dirstalk
Для локальной разработки вам нужно иметь make и golang, а также правильно настроить GOPATH.
Затем просто клонируйте проект, войдите в папку и:
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
выведет описание каждой команды, доступной в Makefile.
Хотите добавить функциональность? Исправить ошибку? Форкните и создайте PR.