Skip to content

Dirstalk

Modern alternative to dirbuster/dirb

Description

Dirstalk is a modern, performant directory brute-forcing tool written in Go. It's designed as a replacement for classic tools like Dirbuster and Dirb, with better performance, recursive scanning, and clean output formatting.

Installation

BASH
# Using Go
go install github.com/stefanoj3/dirstalk@latest

# Download binary from releases
# https://github.com/stefanoj3/dirstalk/releases

Basic Usage

BASH
# Basic directory scan
dirstalk scan https://target.com -w /usr/share/wordlists/dirb/common.txt

# Custom threads
dirstalk scan https://target.com -w wordlist.txt -t 20

# Recursive scan
dirstalk scan https://target.com -w wordlist.txt --scan-depth 3

Advanced Usage

BASH
# Custom status codes to include
dirstalk scan https://target.com -w wordlist.txt --http-statuses-to-ignore 404,403

# Output to file
dirstalk scan https://target.com -w wordlist.txt -o results.txt

# Custom cookies
dirstalk scan https://target.com -w wordlist.txt --cookie "session=abc123"

# Custom User-Agent
dirstalk scan https://target.com -w wordlist.txt --user-agent "Mozilla/5.0"

# Follow redirects
dirstalk scan https://target.com -w wordlist.txt --no-check-certificate

Common Workflows

BASH
# Quick content discovery
dirstalk scan https://target.com -w /usr/share/seclists/Discovery/Web-Content/common.txt -t 30

# Recursive deep scan
dirstalk scan https://target.com -w /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt --scan-depth 3 -t 50