工具
Metasploit Framework
Nmap
SQLMap
Dirb
Gobuster
Netcat
反弹shell
Hydra
wfuzz
wpscan
searchsploit
字典
arp-scan
hashcat
Netdiscover
Cobalt Strike
Goby
Nessus
Xray
Nuclei
-
+
首页
Dirb
dirb 是 Kali Linux 中一款经典的 Web 目录扫描工具,主要用于通过字典爆破的方式发现目标网站的隐藏目录和文件。 ## 语法 ```bash dirb <目标URL> [字典路径] [选项] ``` - **目标 URL**:必须以 http:// 或 https:// 开头,例如 `http://example.com 或 https://test.com/admin`。 - **字典路径**(可选):指定自定义字典文件路径,默认使用 /usr/share/dirb/wordlists/common.txt(Kali 内置常用字典)。 ## 常用参数 | 参数 | 说明 | | ------------------ | ------------------------------------------------------------ | | -a \<USER-AGENT> | 自定义 User-Agent 头(伪装浏览器或爬虫) | | -p \<PROXY[:PORT]> | 使用代理(如 `http://127.0.0.1:8080`) | | -r | 不递归扫描子目录 | | -R | 递归扫描子目录(默认不开启) | | -X \<EXTENSION> | 扫描指定后缀的文件(如 -X .php,.html 会尝试 test.php、test.html) | | -S | 静默模式,只显示存在的目录 / 文件 | | -o \<FILE> | 将结果保存到指定文件 | | -w | 不显示警告信息 | | -z \<SECONDS> | 扫描间隔时间(秒),避免请求过于频繁被拦截 | ## 示例 ```bash dirb http://example.com dirb http://example.com /usr/share/wordlists/dirb/big.txt dirb http://example.com -X .php,.asp dirb http://example.com -R dirb http://example.com -o scan_result.txt ``` ```bash dirb http://192.168.186.133/ -p http://192.168.186.133:3128/ ----------------- DIRB v2.22 By The Dark Raver ----------------- START_TIME: Mon Oct 6 23:14:37 2025 URL_BASE: http://192.168.186.133/ WORDLIST_FILES: /usr/share/dirb/wordlists/common.txt PROXY: http://192.168.186.133:3128/ ----------------- GENERATED WORDS: 4612 ---- Scanning URL: http://192.168.186.133/ ---- + http://192.168.186.133/cgi-bin/ (CODE:403|SIZE:291) + http://192.168.186.133/connect (CODE:200|SIZE:109) + http://192.168.186.133/index (CODE:200|SIZE:21) + http://192.168.186.133/index.php (CODE:200|SIZE:21) + http://192.168.186.133/robots (CODE:200|SIZE:45) + http://192.168.186.133/robots.txt (CODE:200|SIZE:45) + http://192.168.186.133/server-status (CODE:403|SIZE:296) ----------------- END_TIME: Mon Oct 6 23:14:39 2025 DOWNLOADED: 4612 - FOUND: 7 ```
毛林
2025年10月7日 11:48
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码