AI-powered cybersecurity CLI with web research, local LLM support, and intelligent agents
Project description
FlawHunt CLI
The smart CLI for cybersecurity professionals and ethical hackers
FlawHunt CLI is an AI-powered terminal assistant that transforms natural language into safe, effective cybersecurity operations. Built with security-first principles, it provides three specialized modes for different use cases while maintaining comprehensive safety controls.
๐ฏ Quick Summary
- ๐ค SAGE Mode: Direct cybersecurity knowledge and guidance without tools
- โ๏ธ FORGE Mode: Command generation with confirmation for precise operations
- ๐ฏ HUNTER Mode: Full AI agent with advanced tools for complete tactical operations
- ๐ Security-First: Safe by default with dangerous command blocking
- ๐ง Smart Memory: Conversation history with semantic search and context awareness
- ๐จ Customizable: Multiple themes, verbose controls, and personalization options
โก Quick Start
- Install:
pip3 install flawhunt - Get API Keys: Groq API key
- Get License: FlawHunt license key for full features
- Run:
flawhuntand follow the setup wizard - Start Hacking: Choose your mode and begin your cybersecurity operations!
๐ Key Features
๐ก๏ธ Security & Safety
- Safe by Default: Automatically blocks dangerous commands and requires confirmation
- Security Patterns: Built-in detection of potentially harmful operations
- Ethical Focus: Designed for defensive security and ethical hacking practices
- Command Validation: All shell operations are security-checked before execution
๐ค Four Operating Modes
1. ๐ค SAGE Mode (Ask Mode)
Your cybersecurity study buddy for direct knowledge and guidance.
- Pure knowledge responses without tool execution
- Perfect for learning concepts, theory, and best practices
- Fast answers to security questions and explanations
2. โ๏ธ FORGE Mode (Generate Mode)
The command craftsman for precision-crafted tools.
- Generates commands with detailed explanations
- Requires user confirmation before execution
- Perfect for learning command syntax and understanding operations
3. ๐ฏ HUNTER Mode (Agent Mode)
Elite operative with full tool access for complete operations.
- Advanced AI agent with comprehensive tool suite
- Autonomous execution with safety controls
- Complete cybersecurity workflow automation
4. ๐ค HEXBOT Mode (Telegram Remote Interface)
Remote command execution from anywhere via Telegram.
- Execute commands on your machine from Telegram
- Secure user authorization system
- Real-time responses in your Telegram chat
- Full HUNTER agent capabilities remotely
๐ง Intelligent Memory System
- Conversation History: Persistent memory across sessions with metadata
- Semantic Search: Find past conversations by meaning and context
- Session Management: Organize conversations by topics or projects
- Context Awareness: AI remembers and builds on previous discussions
- Vector Storage: Advanced similarity matching for relevant context injection
๐ ๏ธ Comprehensive Tool Suite
- Shell Operations: Safe command execution with explanations
- File Management: Read, write, and navigate filesystem operations
- Git Integration: Version control operations and workflow automation
- Docker Support: Container management and deployment operations
- Package Management: Multi-platform package installation and management
- Cybersecurity Tools: Automated installation and usage of security tools
- Environment Setup: Complete development environment configuration
- Script Generation: Custom script creation for specific tasks
๐จ Customization & Themes
- Multiple Themes: Professional, hacker, minimal, and custom themes
- Verbose Control: Toggle between detailed reasoning and clean output
- Animation Effects: Matrix rain, glitch effects, and terminal animations
- Progress Tracking: Visual progress bars and status indicators
- Personalization: Configurable prompts, colors, and interface elements
๐ Advanced Features
- Backup & Sync: Cloud backup of conversation history across devices
- Statistics: Detailed usage analytics and security metrics
- Learning Mode: Built-in cybersecurity tool education and tutorials
- Auto-completion: Intelligent command and path completion
- File Monitoring: Real-time filesystem change detection
- Cross-Platform: Full support for Windows, macOS, and Linux
๐ฆ Installation
๐ Quick Install (Recommended)
Install using pip:
pip3 install flawhunt
๐ Requirements
You only need:
- Groq API Key
- FlawHunt License Key (for full features)
๐ ๏ธ Advanced: Install from Source
For developers who want to modify the code:
git clone https://github.com/gamkers/GAMKERS_CLI.git
cd GAMKERS_CLI
pip install -r requirements.txt
pip install -e .
๐ง Configuration
๐ API Keys Setup
Set up your API keys using environment variables or during first run:
# Groq API Key
export GROQ_API_KEY=your_groq_key_here
# FlawHunt license key
export FLAWHUNT_KEY=your_flawhunt_key_here
๐ First Run
After downloading and extracting the zip file:
flawhunt
The application will guide you through:
- API key configuration (if not set via environment variables)
- FlawHunt license key setup
- Initial mode selection and preferences
๐ก Usage Examples
Basic Operations
# Start FlawHunt CLI
./flawhunt # (or ./flawhunt.exe on Windows)
# Select mode (1=SAGE, 2=FORGE, 3=HUNTER)
Mode choice: 3
# Natural language commands
> scan this network for open ports
> install nmap and show me how to use it
> what are the best tools for web application testing?
> create a python script to parse log files
> explain what this command does: nmap -sS -O target
Mode Switching
# Switch between modes anytime
:mode sage # Switch to SAGE mode
:mode forge # Switch to FORGE mode
:mode hunter # Switch to HUNTER mode
Meta Commands
# System controls
:help # Show all available commands
:safe on/off # Toggle safety mode
:verbose on/off # Toggle detailed output
:clear # Clear screen
:quit # Exit application
# Customization
:theme # Show available themes
:theme hacker # Switch to hacker theme
:animation matrix # Run matrix animation
# Memory & History
:history # Show recent conversations
:history search nmap # Search for nmap-related conversations
:session new "Web Testing" # Create new conversation session
:backup # Create cloud backup
# Learning & Tools
:learn nmap # Learn about nmap tool
:packages # Show available security tools
:stats # Show usage statistics
Advanced Workflows
# Cybersecurity reconnaissance workflow
> install and configure nmap for network discovery
> scan 192.168.1.0/24 for live hosts
> perform service detection on discovered hosts
> generate a report of findings
# Web application testing
> set up burp suite for web app testing
> install and configure sqlmap
> test this URL for SQL injection: http://example.com/page?id=1
> document findings in a structured report
# Environment setup
> set up a complete penetration testing environment
> install all essential cybersecurity tools
> configure my development environment for security research
๐จ Themes & Customization
Available Themes
- Professional: Clean, business-appropriate interface
- Hacker: Green-on-black terminal aesthetic
- Minimal: Simplified, distraction-free design
- Custom: User-defined color schemes and layouts
Verbose Mode Control
:verbose off # Clean, direct answers
:verbose on # Detailed reasoning and steps
Animation Effects
:animation matrix # Matrix digital rain
:animation glitch <text> # Glitch text effect
:animation typewriter <text> # Typewriter effect
:animation scan # Network scan simulation
๐ Security Features
Built-in Safety Controls
- Dangerous command pattern detection
- Confirmation prompts for destructive operations
- Safe mode toggle for additional protection
- Command explanation before execution
Ethical Guidelines
- Designed for defensive security practices
- Educational focus on cybersecurity learning
- No offensive capabilities or attack tools
- Compliance with responsible disclosure principles
๐ Project Structure
FlawHunt CLI/
โโโ main.py # Main application entry point
โโโ ai_terminal/ # Core application modules
โ โโโ __init__.py # Package initialization
โ โโโ agent.py # AI agent implementation
โ โโโ llm.py # Language model wrapper
โ โโโ tools.py # Tool implementations
โ โโโ safety.py # Security and safety controls
โ โโโ themes.py # Theme management
โ โโโ config.py # Configuration management
โ โโโ conversation_history.py # Memory system
โ โโโ vector_store.py # Semantic search
โ โโโ animations.py # Visual effects
โ โโโ utils.py # Utility functions
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
โโโ docs/ # Additional documentation
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes with appropriate tests
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
For contributors and developers:
git clone https://github.com/gamkers/GAMKERS_CLI.git
cd GAMKERS_CLI
pip install -r requirements.txt
pip install -e .
python main.py # Run from source
python -m pytest tests/ # Run tests
๐ License
MIT License - see LICENSE.md for details.
๐ Support & Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: See
/docsfolder for detailed guides - Security: Report security issues privately via email
๐ Acknowledgments
- Built with LangChain for AI agent capabilities
- Powered by Groq API
- UI powered by Rich for beautiful terminal output
- Command completion via prompt-toolkit
FlawHunt CLI - Empowering ethical hackers with AI-assisted cybersecurity operations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flawhunt-1.2.0.tar.gz.
File metadata
- Download URL: flawhunt-1.2.0.tar.gz
- Upload date:
- Size: 153.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04879c743aa542954649234160cdc3974740e8b17e407a35f6087a5713eeab5
|
|
| MD5 |
022c92be72caf7beb3e598a46974d7d6
|
|
| BLAKE2b-256 |
b61f1721b7ac23f4d106580c539ef5fa936d02ac190f25f639faac1d4dbc6eec
|
File details
Details for the file flawhunt-1.2.0-py3-none-any.whl.
File metadata
- Download URL: flawhunt-1.2.0-py3-none-any.whl
- Upload date:
- Size: 155.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7da7e3af8f706452d3c3cf66d3ef7593ff24548f1878a79a2ce211626949ac60
|
|
| MD5 |
ec808f61cb2ee124e75d0c41e1a00ace
|
|
| BLAKE2b-256 |
5c20f66050d4e1c187226f8d33e13304f406a9b22150118782e55f0103803b13
|