Metadata-Version: 2.4
Name: dirsearch
Version: 0.5.0
Summary: Advanced web path scanner
Author-email: Mauro Soria <maurosoria@protonmail.com>
License-Expression: GPL-2.0-only
Project-URL: Homepage, https://github.com/maurosoria/dirsearch
Keywords: infosec,bug bounty,pentesting,security
Classifier: Programming Language :: Python
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: PySocks==1.7.1
Requires-Dist: Jinja2==3.1.6
Requires-Dist: pyopenssl==26.1.0
Requires-Dist: requests==2.33.1
Requires-Dist: requests-ntlm==1.3.0
Requires-Dist: colorama==0.4.6
Requires-Dist: beautifulsoup4==4.14.3
Requires-Dist: defusedcsv==3.0.0
Requires-Dist: defusedxml==0.7.1
Requires-Dist: requests-toolbelt==1.0.0
Requires-Dist: httpx==0.28.1
Requires-Dist: httpx-ntlm==1.4.0
Provides-Extra: mysql
Requires-Dist: mysql-connector-python==9.6.0; extra == "mysql"
Provides-Extra: postgresql
Requires-Dist: psycopg[binary]==3.3.3; extra == "postgresql"
Provides-Extra: db
Requires-Dist: mysql-connector-python==9.6.0; extra == "db"
Requires-Dist: psycopg[binary]==3.3.3; extra == "db"
Dynamic: requires-dist
Dynamic: requires-python

<img src="static/logo.png#gh-light-mode-only" alt="dirsearch logo (light)" width="675px">
<img src="static/logo-dark.png#gh-dark-mode-only" alt="dirsearch logo (dark)" width="675px">

# dirsearch - Web Path Discovery

![Build](https://img.shields.io/badge/Built%20with-Python-Blue)
![License](https://img.shields.io/badge/license-GNU_General_Public_License-_red.svg)
![Stars](https://img.shields.io/github/stars/maurosoria/dirsearch.svg)
[![Release](https://img.shields.io/github/release/maurosoria/dirsearch.svg)](https://github.com/maurosoria/dirsearch/releases)
[![Sponsors](https://img.shields.io/github/sponsors/maurosoria)](https://github.com/sponsors/maurosoria)
[![Discord](https://img.shields.io/discord/992276296669339678.svg?logo=discord)](https://discord.gg/2N22ZdAJRj)
[![Twitter](https://img.shields.io/twitter/follow/_dirsearch?label=Follow)](https://twitter.com/_dirsearch)


> An advanced web path brute-forcer

**dirsearch** is being actively developed by [@maurosoria](https://twitter.com/_maurosoria) and [@shelld3v](https://twitter.com/shells3c_).

Join the [Discord server](https://discord.gg/2N22ZdAJRj) to communicate with the team.

## Quick Start

dirsearch 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](docs/installation.md) for the native build steps.

Pre-built PyInstaller binaries and portable folder archives are available on the [Releases page](https://github.com/maurosoria/dirsearch/releases).

## Documentation

The full documentation now lives in [`docs/`](docs/index.md):

- [Installation](docs/installation.md): supported platforms, Python install, release artifacts, and Docker.
- [Usage Guide](docs/usage.md): common scans, recursion, filters, proxies, raw requests, reports, and tips.
- [Wordlists](docs/wordlists.md): `%EXT%`, categories, templates, prefixes, suffixes, and transformations.
- [CLI Options](docs/options.md): complete command-line reference.
- [Configuration](docs/configuration.md): `config.ini` reference.
- [Sessions](docs/sessions.md): save, list, and resume scan sessions.
- [Python API](docs/python-api.md): importable API examples.
- [Building](docs/building.md): PyInstaller, portable builds, Docker images, and GitHub Actions.
- [References](docs/references.md): 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 the full CLI help.

## Python API

dirsearch 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](docs/python-api.md) 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](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.
