How sakiir/fuzzy works
Project type and purpose
• This is a Python‐based command-line web fuzzer (“Fuzzy”) designed to drive HTTP requests against a target URL template using a wordlist. It is not a multi-service system, but rather a single executable tool built around an asynchronous worker‐pool pattern.
File structure
• Top‐level files:
• fuzzy.py – entry point wrapper invoking fuzzy/__main__.py
• setup.py & requirements.txt – packaging and dependencies (e.g., aiohttp, click or argparse)
• Package directory fuzzy/:
• __main__.py – module executed when fuzzy is run
• cli.py – command line parsing and option handling
• request.py – HTTP client layer using aiohttp
• matching.py & utils.py – response filtering and utility functions
• printer.py – formatted output to stdout
• logging.py – log abstraction
• Other artifacts:
• images/ – documentation assets
• .gitignore
Key insights from README
• The fuzzer:
• Parses CLI args (--url, --wordlist, --limit, --delay, filter flags)
• Builds a task queue of URL requests with the fuzz tag replaced by each wordlist entry
• Spawns N asynchronous workers (default 1) that pick tasks from the queue, issue HTTP requests (via aiohttp), then pipe responses through matchers/filters and printers.
• Supports custom headers, proxies, safe‐mode delays, and HTTP response filtering.
a. User / CLI Layer
• Terminal → fuzzy command → cli.py
b. Core Fuzzer Engine
• Task Scheduler / Queue (in‐memory)
• Worker Pool (asyncio tasks in request.py)
c. HTTP Client Layer
• aiohttp session configured via request.py
d. Processing Pipeline
• Response filters (matching.py)
• Printers (printer.py)
• Logging (logging.py)
e. External Systems
• Wordlist file (filesystem)
• Target web server (HTTP endpoint)
Relationships and data flow
1. CLI parses arguments → constructs “task generator.”
2. Wordlist reader feeds URLs into the Task Queue.
3. Worker Pool asynchronously pulls tasks from the Queue.
4. Each worker issues an HTTP request to the Target via aiohttp.
5. Responses pass through Matching/Filtering → decide if to display.
6. Printer formats results → stdout; Logging publishes to log file or console as configured.
Architectural patterns and technologies
• Asynchronous Worker‐Pool (asyncio + task queue)
• Modular CLI (click/argparse in cli.py)
• Layered Processing (request → match → print → log)
• Python Packaging (setup.py, entry point via __main__.py)