
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
यदि कोई out फ्लैग निर्दिष्ट नहीं किया गया है तो परिणाम stdout पर प्रिंट किया जाएगा।
आप यहाँ से एक रिलीज़ डाउनलोड कर सकते हैं या एक डॉकर इमेज का उपयोग कर सकते हैं। (जैसे docker run stefanoj3/dirstalk dirstalk <cmd>)
यदि आप आर्क-आधारित लिनक्स वितरण का उपयोग कर रहे हैं, तो आप इसे 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 बनाएं।