Dirb एक CLI-based web directory brute-forcing tool है जो web server पर hidden directories और files को find करने के लिए use होता है। इसका काम है wordlist के साथ directories को brute-force करके detect करना।
👉 Web discovery और recon phase में यह बहुत useful tool है।
🔍 Dirb क्या-क्या कर सकता है
Directory Discovery
Hidden directories find करना
File Discovery
Hidden files find करना
Custom Wordlists
अपनी wordlist use करना
Response Analysis
HTTP status codes check करना
Extension Filter
Specific extensions search करना
Multi-threading
Fast scanning support
⚙️ Kali NetHunter / Termux में Dirb install
System Update
apt updateInstall Dirb
apt install dirbVerify Installation
dirb💻 Basic Commands (Use)
👉 Commands को एक-एक करके use कर सकते हो:
Basic Scan
dirb http://example.comCustom Wordlist
dirb http://example.com /path/to/wordlist.txtSpecific Extensions
dirb http://example.com /usr/share/wordlists/dirb/common.txt -X .php,.html,.jsIgnore 404 Responses
dirb http://example.com /usr/share/wordlists/dirb/common.txt -N 404Verbose Mode
dirb http://example.com -v🔥 Real Example (Practical समझ)
Command
dirb http://example.com /usr/share/wordlists/dirb/common.txt👉 Dirb wordlist में से हर directory/filename को try करता है → HTTP response देखकर confirm करता है
📊 Output समझो
👉 मान लो output कुछ ऐसा आता है:
🧠 इसका मतलब:
/admin, /config.php
Success! Page exists → Admin panel और config file accessible
/backup
Redirect → Backup directory है, investigation चाहिए
/uploads
Forbidden → Directory exists लेकिन access denied
👉 /admin panel को exploit करके आप admin access प्राप्त कर सकते हो → /config.php में database credentials हो सकते हैं
📚 Popular Wordlists
👉 Kali/Termux में built-in wordlists available हैं:
Common directories
/usr/share/wordlists/dirb/common.txtBig wordlist (comprehensive)
/usr/share/wordlists/dirb/big.txtVuln scanners specific
/usr/share/wordlists/dirb/vulns.txtबिना permission किसी भी website को brute force करना illegal है
Practice के लिए use करो:
- अपना local web server
- Authorized testing environments
- Bug bounty programs
🧩 Related Tools
Gobuster
Modern alternative to Dirb
WhatWeb
Web technology identification
Dirb = "Hidden Door Finder"
Website में जो directories/filenames hidden हैं या manually ढूंढना मुश्किल है, Dirb उन्हें brute-force करके पकड़ लेता है।