推荐一个实用的开源工具——dirsearch。项目由maurosoria开发维护,GitHub上获得了 14697 个Star。简单来说,它是一款Web路径扫描仪,对于站长和开发者来说是个不错的工具。
工具功能介绍
> An advanced web path brute-forcerdirsearch is being actively developed by @maurosoria and @shelld3v.Join the Discord server to communicate with the team.
Quick Startdirsearch requires Python 3.11 or higher.
sh
git clone https://github.com/maurosoria/dirsearch.git --depth 1
cd dirsearch
python3 dirsearch.py -u https://example.com -e php,html,js
You can also install the latest Python stack directly from GitHub with pip:
sh
pip3 install git+https://github.com/maurosoria/dirsearch.git
dirsearch -u https://example.com -e php,html,js
The Rust native backend is opt-in for source installs; see Installation for the native build steps.Pre-built PyInstaller binaries and portable folder archives are available on the Releases page.
Documentation
The full documentation now lives in docs/:- Installation: supported platforms, Python install, release artifacts, and Docker.
- Usage Guide: common scans, recursion, filters, proxies, raw requests, reports, and tips.
- Wordlists:
%EXT%, categories, templates, prefixes, suffixes, and transformations. - CLI Options: complete command-line reference.
- Configuration:
config.inireference. - Sessions: save, list, and resume scan sessions.
- Python API: importable API examples.
- Building: PyInstaller, portable builds, Docker images, and GitHub Actions.
- References: external tutorials and articles.
Minimal Examples
sh
python3 dirsearch.py -u https://target
python3 dirsearch.py -u https://target -e php,html,js
python3 dirsearch.py -u https://target -e php,html,js -w /path/to/wordlist
python3 dirsearch.py -u https://target -r --max-recursion-depth 3
Use python3 dirsearch.py -h for common options or python3 dirsearch.py -hh
for the complete CLI help.
Python APIdirsearch can also be used from Python code for local automation, MCP servers,
REST wrappers, and agent-controlled scans. The importable API keeps its
configuration in FuzzerConfig, so callers do not need to parse CLI flags or
mutate CLI globals.See Python API for examples covering templates, custom
wordlists, callbacks, authenticated sessions, and agent-oriented scan recipes.
Contributing
Pull requests and feature requests are welcome. See CONTRIBUTORS.md for the people who have helped improve dirsearch.
License
Copyright (C) Mauro Soria (maurosoria@gmail.com)License: GNU General Public License, version 2.
总的来说,dirsearch是一个功能比较实用的开源工具,适合日常工作和学习使用。如果你正在寻找一款相关工具,不妨下载试试。使用前建议仔细阅读项目文档。