How mandal-suman/mandora works
Project Type & Purpose
• MANDORA is a standalone CLI tool for directory bruteforcing and WAF detection.
• It’s not a web app or service; it’s a command-line Python application that reads wordlists, scans a target URL up to four levels deep, detects WAFs, and writes results to disk.
Key Components
• CLI (mandora.py): User interface for entering target URL and scan depth, orchestrates the scan.
• Core Modules (core/scanner.py & core/waf_detector.py):
• waf_detector wraps the wafw00f library to detect Web Application Firewalls.
• scanner reads the wordlist and issues HTTP requests to discover directories.
• Wordlist Data (wordlists/wordlists.txt): Source of directory names to test.
• Output Store (output/…): Filesystem directories and text files capturing scan results and summary.
• External Service: The target web server (HTTP) and the wafw00f detection engine.
Relationships & Data Flow
1. CLI invokes → WAF Detector (queries wafw00f)
2. CLI then invokes → Scanner (reads wordlist, issues HTTP requests to target)
3. Scanner writes → Output folder structure
4. Scanner and WAF Detector both interact with the External Target (HTTP endpoint)
Emphasize
• Clear component labels