
بديل حديث لـ dirbuster/dirb
ديرستالك هو تطبيق متعدد الخيوط مصمم لفرض المسارات على خوادم الويب.
تحتوي الأداة على وظائف مشابهة لتلك التي تقدمها dirbuster و dirb.
التطبيق يقوم بتوثيق نفسه. تشغيل dirstalk -h سيعيد جميع الأوامر المتاحة مع وصف موجز، يمكنك الحصول على المساعدة لكل أمر عن طريق تشغيل dirstalk <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>)
إذا كنت تستخدم توزيعة لينكس قائمة على Arch، يمكنك الحصول عليه عبر AUR: https://aur.archlinux.org/packages/dirstalk/
مثال:
yay -S aur/dirstalk
كل ما تحتاجه للتطوير المحلي هو أن يكون make و golang متاحين وأن يكون GOPATH مهيأ بشكل صحيح.
ثم يمكنك استنساخ المشروع، الدخول إلى المجلد و:
make dep # لجلب التبعيات
make tests # لتشغيل مجموعة الاختبارات
make check # للتحقق من أي مشكلة في نمط الكود
make fix # لإصلاح نمط الكود تلقائياً باستخدام goimports
make build # لبناء ملف تنفيذي لنظام تشغيل المضيف (لم يتم اختباره تحت ويندوز)
make help
ستطبع وصفًا لكل أمر متاح في Makefile.
هل ترغب في إضافة وظيفة؟ إصلاح خطأ؟ قم بعمل fork وأنشئ PR.