Environment:0x4m4 Hexstrike ai Python 3 8 Plus
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Security, Python |
| Last Updated | 2026-10-10 00:00 GMT |
Overview
Python 3.8+ runtime environment with standard library dependencies for running the HexStrike AI server and MCP client.
Description
This environment provides the base Python runtime required by all HexStrike AI components. The server (hexstrike_server.py) and MCP client (hexstrike_mcp.py) both use Python 3.8+ features including f-strings, dataclasses, typing enhancements, and the venv module for virtual environment management. The codebase uses type hints (Dict[str, Any], Optional, List) throughout, which are evaluated lazily in 3.8+ but benefit from 3.9+ built-in generics. The README badge confirms Python 3.8+ as the minimum supported version.
Usage
Use this environment for all HexStrike AI implementations. It is the mandatory base prerequisite for running the Flask server, the MCP client, and every tool integration. Both hexstrike_server.py and hexstrike_mcp.py require this runtime.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux (Ubuntu/Debian preferred) | Kali Linux 2024.1+ recommended for built-in security tools |
| Hardware | 2+ CPU cores, 4GB RAM | Minimum for server; 8GB+ recommended for parallel scans |
| Disk | 10GB SSD | For Python venv, pip packages, and tool caches |
Dependencies
System Packages
- `python3` >= 3.8
- `python3-venv` (for virtual environment creation)
- `python3-pip`
Python Packages
- `flask` >= 2.3.0, < 4.0.0
- `requests` >= 2.31.0, < 3.0.0
- `psutil` >= 5.9.0, < 6.0.0
- `fastmcp` >= 0.2.0, < 1.0.0
- `beautifulsoup4` >= 4.12.0, < 5.0.0
- `selenium` >= 4.15.0, < 5.0.0
- `webdriver-manager` >= 4.0.0, < 5.0.0
- `aiohttp` >= 3.8.0, < 4.0.0
- `mitmproxy` >= 9.0.0, < 11.0.0
- `pwntools` >= 4.10.0, < 5.0.0
- `angr` >= 9.2.0, < 10.0.0
- `bcrypt` == 4.0.1 (pinned for passlib compatibility)
Credentials
No credentials required for the base Python environment. Credentials for external services are documented in their respective Environment pages.
Quick Install
# Create and activate virtual environment
python3 -m venv hexstrike-env
source hexstrike-env/bin/activate
# Install all Python dependencies
pip install -r requirements.txt
Code Evidence
Python version badge from `README.md:8`:
[]
Virtual environment setup from `requirements.txt:4-7`:
# INSTALLATION COMMANDS:
# python3 -m venv hexstrike_env
# source hexstrike_env/bin/activate
# python3 -m pip install -r requirements.txt
# python3 hexstrike_server.py
Type hint usage from `hexstrike_server.py:36`:
from typing import Dict, Any, Optional
Dataclass usage from `hexstrike_server.py:49`:
from dataclasses import dataclass, field
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `ModuleNotFoundError: No module named 'flask'` | Dependencies not installed | Run `pip install -r requirements.txt` in the venv |
| `ImportError: cannot import name 'FastMCP'` | fastmcp not installed or wrong version | `pip install fastmcp>=0.2.0,<1.0.0` |
| `PermissionError` on hexstrike.log | No write permission in CWD | Run from a writable directory or fix permissions |
Compatibility Notes
- Python 3.8: Minimum supported version; type hints work but lack built-in generics (use typing.Dict not dict).
- Python 3.10+: Recommended; supports match statements and improved error messages.
- Windows: Not officially supported; use WSL2 or a Linux VM.
- macOS: Works with Homebrew Python 3.8+; some security tools may need separate installation.
Related Pages
- Implementation:0x4m4_Hexstrike_ai_setup_mcp_server
- Implementation:0x4m4_Hexstrike_ai_HexStrikeClient_safe_post
- Implementation:0x4m4_Hexstrike_ai_Flask_Tool_Endpoint
- Implementation:0x4m4_Hexstrike_ai_execute_command_with_recovery
- Implementation:0x4m4_Hexstrike_ai_BugBountyTarget
- Implementation:0x4m4_Hexstrike_ai_BugBountyWorkflowManager
- Implementation:0x4m4_Hexstrike_ai_CTFChallenge
- Implementation:0x4m4_Hexstrike_ai_CTFWorkflowManager
- Implementation:0x4m4_Hexstrike_ai_CTFToolManager
- Implementation:0x4m4_Hexstrike_ai_CTFChallengeAutomator
- Implementation:0x4m4_Hexstrike_ai_IntelligentDecisionEngine
- Implementation:0x4m4_Hexstrike_ai_intelligent_smart_scan
- Implementation:0x4m4_Hexstrike_ai_IntelligentErrorHandler
- Implementation:0x4m4_Hexstrike_ai_FailureRecoverySystem
- Implementation:0x4m4_Hexstrike_ai_ParameterOptimizer
- Implementation:0x4m4_Hexstrike_ai_CVEIntelligenceManager
- Implementation:0x4m4_Hexstrike_ai_AIExploitGenerator
- Implementation:0x4m4_Hexstrike_ai_VulnerabilityCorrelator