---
title: "dirsearch"
weight: 60
description: "Web 路径扫描器"
date: "2026-03-24T16:29:46+08:00"
lastmod: "2026-03-24T16:29:46+08:00"
---

## dirsearch

dirsearch 是一款 Web 路径扫描器，用于发现 Web 服务器上的隐藏目录和文件。

## 基础使用

### 基础扫描
```bash
dirsearch -u https://target.com
```

### 指定字典
```bash
dirsearch -u https://target.com -w /path/to/wordlist.txt
```

### 指定扩展名
```bash
dirsearch -u https://target.com -e php,html,js
```

### 递归扫描
```bash
dirsearch -u https://target.com -r 3
```

## 常用参数

| 参数 | 描述 |
|------|------|
| -u | 目标 URL |
| -w | 字典文件 |
| -e | 扩展名 |
| -r | 递归深度 |
| -t | 线程数 |
| --status | 过滤状态码 |
| -o | 输出文件 |

## 功能特性

- **多线程** - 并发请求加速扫描
- **递归扫描** - 深度发现目录
- **多种编码** - 支持多种 URL 编码
- **灵活过滤** - 状态码、大小过滤

## 使用示例

```bash
# 基本扫描
dirsearch -u https://target.com

# 指定扩展名
dirsearch -u https://target.com -e php,asp,aspx

# 递归扫描
dirsearch -u https://target.com -r 2

# 多线程
dirsearch -u https://target.com -t 50

# 保存结果
dirsearch -u https://target.com -o results.txt
```

## 参考资源

- [dirsearch GitHub](https://github.com/maurosoria/dirsearch)