Miftah (مفتاح) - Arabic for "Key" - is a cutting-edge firewall bypassing tool designed to circumvent even the most sophisticated security measures with unparalleled efficiency and sophistication. Created by Pr0Fessor_SnApe, Miftah employs advanced techniques that go beyond conventional methods, offering capabilities that are truly beyond imagination.
This tool is engineered to provide 100% perfect results in circumventing robust security measures through unprecedented evasion techniques, dynamic payload generation, and adaptive bypass strategies.
- Quantum Encoding: Multiple simultaneous encoding layers (URL, Unicode, Hex, Base64)
- Structural Fragmentation: Splits payloads into seemingly unrelated fragments
- Semantic Obfuscation: Unicode normalization and zero-width character injection
- Temporal Encoding: Time-based payload variations
- Quantum Superposition: Multiple payload states simultaneously
- Polymorphic Headers: Headers that change with every request
- Real-time adaptive payload creation based on target analysis
- Automatic encoding and obfuscation selection
- Response-based payload adaptation
- Chaos-level configurable mutation (1-5)
- Load custom payloads from text files
- Automatic chaos processing of custom payloads
- Support for multiple payload categories (XSS, SQLi, CMDi, SSRF, LFI)
- Comment support in payload files
- Session management with automatic re-initialization
- Rate limiting and timing control
- Connection drop detection as success indicator
- Comprehensive result reporting
Miftah is organized into a modular structure for better maintainability and scalability:
miftah_project/
├── miftah.py # Main Entry Point & Orchestrator
├── engines/ # Core Logic Engines
│ ├── evasion.py # Evasion & Mutation Logic
│ ├── payload_gen.py # Payload Generation & Loading
│ └── bypass_engine.py # Network Execution Engine
└── utils/ # Utility Modules
└── colors.py # Terminal Formatting & Logging
# Python 3.8 or higher required
python3 --version
# Install required packages
pip install requests curl_cffi# Clone or download the tool
git clone https://github.com/Pr0fessorSnApe/miftah.git
cd miftah_project
# Make executable (optional)
chmod +x miftah.py
# Run basic scan
python3 miftah.py --target 192.168.1.100 --port 80# Basic firewall bypass
python3 miftah.py --target example.com --port 80
# With custom payload file
python3 miftah.py --target 10.0.0.1 --payload-file custom_payloads.txt
# Maximum chaos mode with TLS spoofing
python3 miftah.py --target 192.168.1.50 --chaos-level 5 --use-curl
# Save results to JSON
python3 miftah.py --target example.com --output results.json| Option | Description | Default |
|---|---|---|
--target |
Target IP or hostname (required) | - |
--port |
Target port number | 80 |
--payload-file |
Path to custom payload file | None |
--chaos-level |
Chaos level 1-5 (5 = maximum) | 5 |
--use-curl |
Enable curl_cffi TLS spoofing | False |
--output |
Output results to JSON file | None |
Miftah offers 5 levels of chaos-based obfuscation:
- Level 1: Basic encoding (URL, Unicode, Mixed Case)
- Level 2: + Structural fragmentation
- Level 3: + Semantic obfuscation (Unicode normalization)
- Level 4: + Temporal encoding (time-based variations)
- Level 5: + Quantum superposition (multiple states)
Enable curl_cffi for advanced TLS fingerprint spoofing:
python3 miftah.py --target example.com --use-curlThis impersonates Chrome 120 and bypasses JA3 fingerprinting.
- miftah.py: The main orchestrator that handles CLI arguments and coordinates the bypass campaign.
- EvasionEngine (
engines/evasion.py): Generates chaotic payload mutations and polymorphic headers. - DynamicPayloadGenerator (
engines/payload_gen.py): Creates adaptive payloads in real-time. - FirewallBypassEngine (
engines/bypass_engine.py): Executes bypass attempts with session management.
This tool is provided for educational and research purposes only. The creator assumes no responsibility for any misuse or damage caused by this software. Use at your own risk and only on systems you have explicit permission to test.
Pr0Fessor_SnApe
Miftah: Because every firewall has a key. 🔑