dirsearch supports saving and resuming scan sessions, allowing you to pause a long-running scan and continue it later.
Sessions are stored in JSON format using a directory-based structure for human readability and inspection. Legacy .pickle and .pkl session files are no longer supported.
session_name/
├── meta.json # Version, timestamps, output history
├── controller.json # Scan state (URLs, directories, progress)
├── dictionary.json # Wordlist state and position
└── options.json # Command-line options used
When you pause a scan with CTRL+C, dirsearch prompts you to save the session:
python3 dirsearch.py -u https://target -e php
# Press CTRL+C during scan
# Select "save" and provide a session nameResume a saved session with -s / --session:
python3 dirsearch.py -s sessions/my_sessionView all resumable sessions with --list-sessions:
python3 dirsearch.py --list-sessionsThe listing includes:
- Session path
- Target URL
- Remaining targets and directories
- Jobs processed
- Error count
- Last modified time
Specify a custom directory to search for sessions:
python3 dirsearch.py --list-sessions --sessions-dir /path/to/sessionsDefault session locations:
- Source install:
<dirsearch>/sessions/ - Bundled binary:
$HOME/.dirsearch/sessions/
Sessions maintain a history of previous scan outputs, allowing you to review results from interrupted scans. Each resume appends to the output history with timestamps.