Skip to main content

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

  1. Install: pip3 install flawhunt
  2. Get API Keys: Groq API key
  3. Get License: FlawHunt license key for full features
  4. Run: flawhunt and follow the setup wizard
  5. 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:

  1. API key configuration (if not set via environment variables)
  2. FlawHunt license key setup
  3. 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes with appropriate tests
  4. Commit your changes (git commit -m 'Add amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. 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 /docs folder 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.

Metadata

Release files for flawhunt 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flawhunt 1.2.1
File Size Uploaded
flawhunt-1.2.1.tar.gz 201.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flawhunt 1.2.1
File Interpreter ABI Platform
flawhunt-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 402.7 kB

Release files / flawhunt-1.2.1.tar.gz

Download URL flawhunt-1.2.1.tar.gz
Size 201.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f301c0e66040dab46164efb45d4781955fc5bb473f6a577fab4a5f53e28da13c
BLAKE2b-256 checksum
How to use checksums
633d15ca4a6ead8ab5d033dbda294be2dfe53f83bf83806a90175ac52391aba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / flawhunt-1.2.1-py3-none-any.whl

Download URL flawhunt-1.2.1-py3-none-any.whl
Size 201.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3739b06878bd633e6cdd20fefed5a2651474437ab379fe04461cf741ccee072a
BLAKE2b-256 checksum
How to use checksums
636f6f1fb1e5c42c4242ec61a4391ff18fe3b99b9c0a0cda9f9005fecee506e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page