A full-stack web application designed for security professionals to manage penetration testing engagements following the PTES methodology. Features include an AI-powered assistant, integrated terminal, whitelisted security tools, and automated report generation.
- 🎯 Engagement Management - Track and manage security projects from inception to completion.
- 🛡️ PTES Methodology - Structured 8-phase workflow with interactive AI guidance.
- 💻 Integrated Terminal - Execute security tools Safely with command whitelisting and persistence.
- 🪲 Findings Tracker - Centralized database for documenting vulnerabilities with severity and evidence.
- 🔍 Automated Scans - One-click integration with
nmap,nikto,gobuster, andnuclei. - 🧠 AI Assistant - Intelligent guidance powered by Google Gemini for output analysis and strategy.
- 📊 Report Generation - Export professional Executive and Technical reports in Markdown and JSON formats.
- Python 3.9+ - Backend runtime
- Node.js 18+ - Frontend runtime
- Google Gemini API Key - For AI features (optional, mock responses available)
cd HackMate-v2.0.1cd backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env and add your GEMINI_API_KEY
# Run the backend
uvicorn main:app --reload --port 8000The API will be available at http://localhost:8000
- API Docs:
http://localhost:8000/docs
cd frontend
# Install dependencies
npm install
# Configure environment
cp .env.local.example .env.local
# Run the frontend
npm run devThe frontend will be available at http://localhost:3000
HackMate-v2.0.1/
├── backend/
│ ├── main.py # FastAPI entry point
│ ├── config.py # Configuration settings
│ ├── database.py # SQLAlchemy setup
│ ├── requirements.txt # Python dependencies
│ ├── models/ # SQLAlchemy models
│ │ ├── engagement.py # Engagement model
│ │ ├── phase.py # PTES Phase model
│ │ ├── finding.py # Finding model
│ │ ├── scan.py # Scan model
│ │ ├── terminal.py # Terminal history model
│ │ ├── chat.py # Chat message model
│ │ └── report.py # Report model
│ ├── schemas/ # Pydantic schemas
│ ├── routers/ # API endpoints
│ │ ├── engagements.py # Engagement CRUD
│ │ ├── methodology.py # PTES phases
│ │ ├── terminal.py # Command execution
│ │ ├── findings.py # Vulnerability tracking
│ │ ├── scans.py # Automated scans
│ │ ├── reports.py # Report generation
│ │ └── ai.py # AI assistant
│ └── services/ # Business logic
│ ├── ai_service.py # Gemini integration
│ ├── terminal_service.py
│ └── report_service.py
│
└── frontend/
├── src/
│ ├── app/ # Next.js app router pages
│ │ ├── page.tsx # Dashboard
│ │ ├── engagements/ # Engagement pages
│ │ ├── terminal/ # Terminal page
│ │ ├── findings/ # Findings page
│ │ └── ai/ # AI assistant page
│ ├── components/ # React components
│ │ ├── ui/ # Reusable UI components
│ │ └── layout/ # Layout components
│ └── lib/ # Utilities and API client
└── tailwind.config.ts # Dark hacker theme
- FastAPI - Modern Python web framework
- SQLAlchemy - ORM with SQLite database
- Pydantic - Data validation
- Google Generative AI - Gemini API integration
- Next.js 14 - React framework with App Router
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS
- TanStack Query - Data fetching
- Lucide Icons - Icon library
For more detailed information, check out the following guides:
- Architecture Overview - Deep dive into system design and tech stack.
- Usage Guide - Step-by-step manual for typical penetration testing workflows.
- Features List - Detailed breakdown of platform capabilities.
- API Guide - Documentation for REST endpoints and data schemas.
Note
Detailed application screenshots can be found in the docs/HackMate-images directory.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/engagements |
List all engagements |
| POST | /api/engagements |
Create engagement |
| GET | /api/engagements/{id} |
Get engagement details |
| GET | /api/methodology/phases/{engagement_id} |
Get PTES phases |
| POST | /api/terminal/execute/{engagement_id} |
Execute command |
| GET | /api/findings/engagement/{engagement_id} |
List findings |
| POST | /api/scans/{engagement_id} |
Start scan |
| POST | /api/ai/chat/{engagement_id} |
Chat with AI |
| POST | /api/reports/{engagement_id} |
Generate report |
- Command whitelisting in terminal
- Input sanitization
- Scope limitation enforcement
- No RCE vulnerabilities by design
MIT License - See LICENSE file for details.
