Skip to content

Dirsearch

Web path discovery with extensive wordlists

PythonGitHub

Description

Dirsearch is a simple command-line tool designed to brute force directories and files in web applications. It comes with built-in wordlists and supports extension detection, recursive scanning, and multiple output formats.

Installation

BASH
# Using pip
pip install dirsearch

# From source
git clone https://github.com/maurosoria/dirsearch.git
cd dirsearch
pip install -r requirements.txt

Basic Usage

BASH
# Basic scan
dirsearch -u https://target.com

# With wordlist
dirsearch -u https://target.com -w wordlist.txt

# With extensions
dirsearch -u https://target.com -e php,html,js

Advanced Usage

BASH
# Recursive scan
dirsearch -u https://target.com -r -R 3

# Threads
dirsearch -u https://target.com -t 50

# Exclude status codes
dirsearch -u https://target.com -x 403,404

# With headers
dirsearch -u https://target.com -H "Cookie: session=abc123"

# Multiple targets
dirsearch -l targets.txt -e php,html

# Output formats
dirsearch -u https://target.com -o results.json --format json