How six2dez/reconftw works
Project Type and Purpose
• reconFTW is a command-line tool and automation framework intended to perform recon, OSINT gathering, subdomain enumeration, web vulnerability scans, and various other checks (e.g., XSS, SSRF, SQLi).
• The README emphasizes multiple scanning techniques—and the configuration file (reconftw.cfg) shows that the tool is modular and highly configurable.
• Additionally, the project includes integrations for Docker, Terraform (for AWS deployment via Ansible), and Proxmox, which indicates that it is also designed to be deployed in various environments, including cloud and containerized setups.
File Structure
• Top-level scripts and configuration files (reconftw.sh, install.sh, reconftw.cfg, Makefile) form the core CLI executables and configuration.
• Directories like Docker, Terraform, and Proxmox contain deployment templates:
• The Docker folder holds the Dockerfile and additional configuration scripts/files for containerization.
• The Terraform folder provides infrastructure-as-code files and documentation for AWS deployments.
• The Proxmox folder contains scripts for deploying on Proxmox, indicating virtualization support.
• The .github directory with workflows and issue templates reflects continuous integration and contribution workflows.
• The READMEs and supplementary docs delineate usage, configuration, and module functions.
Extract Architectural Insights from the README
• The README comprehensively lists the main functionalities of reconFTW:
• OSINT operations (domain whois, metadata, email leaks, etc.)
• Subdomain enumeration via passive, brute force, permutations, and certificate transparency methods.
• Host and web scanning using tools such as nmap, httpx, katana, and nuclei.
• Vulnerability checks for issues like XSS, SQLi, SSRF, LFI, etc.
• There is a clear modular separation where each of these “modules” works somewhat independently but is orchestrated by the main script.
• The integration with Axiom (for distributed workload) and Faraday (for result integration) hints at additional external service interactions.
a. Main Components:
• User Interface / CLI: The entry point via reconftw.sh with command-line flags for different modes.
• Core Orchestrator: The main shell scripts (and supporting install/config scripts) that parse the configuration file (reconftw.cfg) and delegate tasks to the following modules.
• Modules (Functional Blocks):
• OSINT Module: Handles whois lookups, email enumeration, metadata extraction, etc.
• Subdomain Enumeration Module: Encapsulates passive searches (crt, GitHub Dorks), brute forcing, and permutations (gotator, ripgen).
• Host Scanning Module: Conducts port scans, CDN checks, and geolocation (nmap, Shodan integration, ipinfo).
• Web Analysis Module: Probes websites, takes screenshots, performs CMS detection, URL extraction, etc.
• Vulnerability Scanning Module: Runs vulnerability assessments (XSS, SSRF, LFI, SQLi, etc.) using tools like dalfox, sqlmap, and nuclei.
• External Integrations:
▪ Axiom Integration for distributed task processing.
▪ Faraday Integration for centralizing scan results.
• Data Storage & Output: Local output directories (including the OutputFolder referenced in Docker usage), and mechanisms to store intermediary and final results.
• Deployment/Containerization Layer:
• Docker Containerization: Dockerfile and associated configurations.
• Terraform & Proxmox Deployments: Infrastructure-as-code and deployment scripts.
b. Relationships and Interactions:
• The CLI accepts user input (target domains, scan modes, config file paths) and passes these to the Core Orchestrator.
• The Core Orchestrator reads settings from reconftw.cfg and then sequentially or concurrently triggers each module based on the selected mode.
• Each module may invoke external tools (e.g., subfinder, httpx, nmap) and then return parsed results to a common output storage.
• When enabled, the Axiom integration orchestrates distributed scanning—this interaction may be represented as a separate “Cloud/Distributed Component”.
• Docker, Terraform, and Proxmox configurations are not part of the scan logic but provide deployment and packaging information.
c. Important Architectural Patterns and Design Principles:
• Modularity: Each scanning facet (OSINT, subdomains, hosts, web analysis, vulnerability checks) is clearly separated into modules that can be enabled/disabled via configuration.
• Config-driven Execution: The entire tool’s behavior is controlled from a central configuration file (reconftw.cfg), enhancing flexibility and extensibility.
• Integration with External Tools: The project employs a “glue” pattern where many independent open-source tools are invoked from a central orchestrator.
• Scalability and Distribution: Use of Axiom for distributed scanning and integration with Terraform for AWS deployment suggests a scalable, distributed design.
d. Relevant Technologies, Frameworks, or Libraries:
• Shell Scripting (Bash) for the core logic.
• Golang and Rust dependencies are mentioned (for various scanning tools).
• External tools and libraries: subfinder, httpx, nmap, nuclei, dalfox, gotator/or ripgen, etc.
• Deployment technologies: Docker for containerization; Terraform and Proxmox for infrastructure deployment; and optional integration with Axiom and Faraday.
• Use clear labels for each component such as “CLI / User Input”, “Core Orchestrator”, “OSINT Module”, “Subdomain Module”, “Host & Web Analysis”, “Vulnerability Assessment Module”, “Distributed Scanning (Axiom)”, “Output/Data Storage”, and “Deployment Interfaces (Docker/Terraform/Proxmox)”.