██╗ ██╗ █████╗ ██████╗██╗ ██╗██████╗ █████╗ ████████╗██╗ ██╗
██║ ██║██╔══██╗██╔════╝██║ ██╔╝██╔══██╗██╔══██╗╚══██╔══╝██║ ██║
███████║███████║██║ █████╔╝ ██████╔╝███████║ ██║ ███████║
██╔══██║██╔══██║██║ ██╔═██╗ ██╔═══╝ ██╔══██║ ██║ ██╔══██║
██║ ██║██║ ██║╚██████╗██║ ██╗██║ ██║ ██║ ██║ ██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
An educational cybersecurity wrapper toolkit, modular CLI framework, and interactive AI suite designed to simplify, automate, and explain penetration testing workflows for CTF players and ethical hacking students.
This toolkit and integrated web application are developed exclusively for academic purposes, cybersecurity training, and legal participation in Capture The Flag (CTF) challenges on machines where you have explicit written authorization.
Unauthorized access of third-party platforms is completely illegal and criminally punishable. The developers and authors disclaim all legal responsibility or liability for any malicious actions, improper uses, or system damages caused by this toolkit.
To launch the full interactive full-stack Hackpath web application suite, follow the instructions below:
Ensure you have the following packages installed on your system:
- Node.js (v18 or higher)
- npm (Node Package Manager)
Clone or navigate to the project directory and run:
npm installCreate a .env file from the example blueprint:
cp .env.example .envInside your .env file, populate your server secret key:
GEMINI_API_KEY="your_api_key_goes_here"(Note: Do not commit .env or API credentials to version control. The application proxies all AI prompts server-side safely to protect your API keys).
Run the local hot-rebuilding server:
npm run devThe server will start running on port 3000 (http://localhost:3000).
To build the application for optimized container runtime or static hosting:
npm run build
npm run startHackpath integrates a visual full-stack interface with a sleek obsidian-dark layout, custom-tailored for cybersecurity learners. The application is divided into six modular workspaces:
- Visual Prompting: Forget complex commands. Pick a category (Recon, Crack, Bruteforce, Post-Exploit), select your tool of choice (e.g.,
nmap,gobuster,hydra,hashcat, etc.), and input your targets. - AI Explanation Engine: Hit "Explain Command (--explain)" to request detailed server-side Gemini breakdowns illustrating the role of each argument, targets, risks, and educational pointers.
- Interactive Terminal Emulator: Execute a
--dry-runor launch a realistic visual simulation. The terminal output is cleanly rendered, showing the actual expected CLI outcomes. Simulated victories automatically commit findings (e.g., opened ports, folders) directly into your active Workspace.
- Contextual Academic Advice: Face a tricky CTF machine or subnet? Describe your host status and your current phase.
- Strategic Steps & Commands: The AI Mentor calculates step-by-step methodologies of next stages, details the logic of corresponding tools, and outputs ready-to-use commands matching your exact target IP.
- Raw Log Ingestion: Paste any raw console outputs or logs (e.g. detailed Nmap output, Gobuster HTTP scans, brute-force logs, or Responder captures).
- Automated Traces Extraction: Gemini scans, parses, categorizes, and isolates valuable artifacts into distinct badges (Open Ports, Directories, Captured Credentials, Cryptographic Hashes).
- One-Click Persistence: Click "Commit Finding" on any parsed asset to save it instantly into the workspace databases.
- Multi-Target Isolation: Maintain independent workspaces for separate CTF machines or targets.
- Discovery Log: View, filter, and manually add customized traces (with name, category classification, flag status, and markdown context notes).
- JSON Backup Exports: Seamlessly download standard JSON workspace backup archives to backup or migrate data.
- Predefined Structuring: Choose from specialized outline templates: academic CTF Walkthrough writeups, formal penetration testing reports, or quick tactical executive summaries.
- Live Output Compiler: The generator looks inside your active workspace and dynamically formats all captured findings into clean Markdown.
- Direct Markdown (.md) Downloads: Save and download your documentation inside one single document ready for your portfolio.
- Native Architecture Viewer: View and learn from the native python 3 source code modular modules hierarchy (
hackpath.py, core managers, plugins for recon, cracking, brute-force, post-exploitation). - Local Download Bash Setup: Download a unified
setup_hackpath.shshell script to generate the entire local, offline Python 3 directory architecture. E.g.:python3 hackpath.py run nmap --target 10.10.10.5 --mode fast --explain
- Check for the availability of essential local hacking dependencies (
python3,nmap,gobuster,hydra,john). - Recommends quick copy-paste commands to install them on Debian/Ubuntu/Kali Linux, macOS (Homebrew), or Windows platforms.
Per avviare la suite web interattiva di Hackpath, segui questi semplici passaggi:
Assicurati di avere installato sul sistema ospite:
- Node.js (v18 o superiore)
- npm (gestore di pacchetti Node)
Apri la cartellina del progetto sul terminale ed esegui:
npm installGenera un file .env copiando il blueprint di esempio:
cp .env.example .envInserisci la tua chiave API all'interno del file .env creato:
GEMINI_API_KEY="LA_TUA_CHIAVE_API_DI_GEMINI"(Nota: la chiave API viene custodita e gestita in modo sicuro sul server Express, senza mai essere esposta nel browser dell'utente).
Lancia il server locale con ricarica automatica dei file:
npm run devL'applicazione risponderà all'indirizzo http://localhost:3000.
Per preparare l'applicazione all'avvio in produzione:
npm run build
npm run startHackpath è una suite didattica integrata con un design dark minimal ed elegante, progettata per razionalizzare l'apprendimento pratico della cybersecurity offensiva. L'app si articola in sei hub interattivi principali:
- Composizione Semplificata: Scegli una categoria (Recon, Crack, Bruteforce, Post-Exploit) ed inserisci i target, automatizzando l'immissione della complessa sintassi CLI.
- Spiegazioni AI in Tempo Reale: Cliccando su "Spiega Flag", Gemini analizza il comando compilato evidenziando il ruolo di ogni flag, i meccanismi sottostanti, l'impatto sul target ed indicazioni di mitigazione.
- Terminale Interattivo: Esegui prove e simulazioni di scansione. I risultati ottenuti vengono visualizzati nel terminale virtuale e registrati nel database dell'area di lavoro corrente.
- Struttura Didattica: Se stai studiando una macchina vulnerabile, indica la situazione corrente e la fase di penetrazione in cui ti trovi.
- Piani di Attacco: Il Mentore AI stila una strategia dettagliata passo-passo che ti insegna i giusti concetti operativi e ti illustra con quali comandi proseguire la scansione.
- Incolla i log grezzi della console (scansioni Nmap fitte, percorsi Gobuster, credenziali Hydra o Responder).
- L'AI li esamina in tempo reale isolando porte, percorsi scoperti, hash e credenziali, mostrandoti badge intelligenti che puoi salvare all'istante con un semplice clic.
- Crea e mantieni spazi di lavoro separati per macchine e sistemi target differenti.
- Gestisci la cronologia dei ritrovamenti, modifica note di laboratorio, o esporta dati in comodi file JSON di backup.
- Scegli un'impostazione (CTF Walkthrough accademico, Report Tecnico informale, Executive Summary strutturato).
- Compila istantaneamente tutte le indagini e i risultati memorizzati nel Workspace prescelto convertendoli in un documento Markdown (.md) leggibile, elegante e pronto per il download.
- Esplora interamente la struttura originale in Python 3 per l'uso locale e offline del toolkit.
- Scarica lo script
setup_hackpath.shper generare all'istante la gerarchia pulita dei file del toolkit CLI sul tuo sistema.
- Misura la disponibilità dei tool difensivi sul tuo PC (Python, Nmap, Gobuster, Hydra, John) fornendoti i comandi precisi ed immediati per l'installazione su Linux, macOS e Windows.
Licenza di Libera Diffusione e Uso
- Questa applicazione e i suoi contenuti (manuali e domande) sono forniti gratuitamente per scopi educativi.
- È consentito l'uso e la distribuzione gratuita dell'applicazione.
- Divieto di Modifica: È severamente vietato modificare, alterare o creare opere derivate dal codice sorgente o dai contenuti di questa applicazione senza esplicita autorizzazione.
© Chiara Berti 13 - 2026
Hackpath — built for learners, by learners. Practice legally, study safely.