Dirstalk 是一个多线程应用程序,旨在对Web服务器上的路径进行暴力破解。
该工具包含的功能与 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 也可以生成自己的字典,例如当您想检查特定文件集是否存在于某个Web服务器上时非常有用。
dirstalk dictionary.generate /path/to/local/files --out mydictionary.txt
如果未指定输出标志,结果将打印到标准输出。
您可以从此处下载发布版本,也可以使用Docker镜像(例如 docker run stefanoj3/dirstalk dirstalk <cmd>)。
如果您使用的是基于Arch的Linux发行版,可以通过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中每个可用命令的描述。
想要添加功能?修复错误?请fork并创建PR。