How techieyuvraj/reconx works
Project Type and Purpose
• ReconX is a full-stack ethical hacking reconnaissance tool.
• It exposes three interfaces:
– Command Line Interface (reconx.py)
– Graphical User Interface (gui.py)
– Web API (FastAPI in app/)
File Structure
• Top-level entry points:
– reconx.py (CLI)
– gui.py (GUI)
– app/main.py (Web API)
• Core logic: core/parallel_crawler.py, app/core/reconx_runner.py
• Integrations: integrations/dirsearch_runner.py, integrations/sublist3r_runner.py
• Bundled tools: dirsearch/ and sublist3r/ directories
• Utilities: utils/*.py (export, forms, screenshots, reporting)
• Frontend assets: frontend/style.css, script.js, templates/*.html
• Reports and Storage: (implicit) reports/ and screenshots/ folders
README for Insights
• Tech stack: Python, FastAPI, Uvicorn, external tools (Dirsearch, Sublist3r)
• Features: parallel crawling, robots.txt, keyword/form detection, PDF reports
• Usage modes: CLI, GUI, API
Main Components & Data Flows
a. Interfaces (Clients)
– CLI (reconx.py)
– GUI (gui.py)
– Web clients (browser → FastAPI)
b. API Layer
– Uvicorn / ASGI server
– FastAPI app/main.py with routers in app/api/routes.py
– Pydantic schemas in app/api/schemas.py
c. Business Logic
– reconx_runner.py (orchestrates scan)
– parallel_crawler.py (core crawler implementation)
d. Integration Adapters
– Dirsearch runner calls dirsearch/dirsearch.py and its library modules
– Sublist3r runner calls sublist3r modules
e. Utilities & Reporting
– File management (app/utils/file_manager.py)
– Scanning helpers (utils/robots.py, utils/forms.py, etc.)
– Report generation (utils/report_generator.py → produces PDF/HTML)
– Screenshot capture (utils/screenshotter.py)
f. Storage & Artifacts
– Local file system: reports/, screenshots/, export files
– Optional: Database files (if any, e.g., SQLite via utils/export)
Architectural Patterns & Principles
• Layered architecture:
– Presentation (CLI, GUI, Web)
– API/Controller (FastAPI routes)
– Service layer (reconx_runner)
– Domain logic (parallel_crawler, integration runners)
– Utility modules (I/O, reporting, screenshotting)
• Modular integration: wrappers around external tools (Dirsearch, Sublist3r)
• Separation of concerns: each interface calls the same core runner
Final Checklist
– All major components (interfaces, API, services, core, integrations, utilities, storage)
– Labels with module names and protocols
– Optional annotations for concurrency (parallel crawling) and external calls