Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miftah: The Ultimate Firewall Bypasser

Introduction

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.

Key Features

🚀 Advanced Evasion Techniques

  • 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

🎯 Dynamic Payload Generation

  • Real-time adaptive payload creation based on target analysis
  • Automatic encoding and obfuscation selection
  • Response-based payload adaptation
  • Chaos-level configurable mutation (1-5)

📁 Custom Payload Support

  • 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

🔄 Intelligent Bypass Engine

  • Session management with automatic re-initialization
  • Rate limiting and timing control
  • Connection drop detection as success indicator
  • Comprehensive result reporting

Project Structure

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

Installation

Prerequisites

# Python 3.8 or higher required
python3 --version

# Install required packages
pip install requests curl_cffi

Quick Start

# 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

Usage

Basic Commands

# 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

Command-Line Options

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

Advanced Techniques

Chaos Levels

Miftah offers 5 levels of chaos-based obfuscation:

  1. Level 1: Basic encoding (URL, Unicode, Mixed Case)
  2. Level 2: + Structural fragmentation
  3. Level 3: + Semantic obfuscation (Unicode normalization)
  4. Level 4: + Temporal encoding (time-based variations)
  5. Level 5: + Quantum superposition (multiple states)

TLS Spoofing

Enable curl_cffi for advanced TLS fingerprint spoofing:

python3 miftah.py --target example.com --use-curl

This impersonates Chrome 120 and bypasses JA3 fingerprinting.

Architecture

Core Components

  1. miftah.py: The main orchestrator that handles CLI arguments and coordinates the bypass campaign.
  2. EvasionEngine (engines/evasion.py): Generates chaotic payload mutations and polymorphic headers.
  3. DynamicPayloadGenerator (engines/payload_gen.py): Creates adaptive payloads in real-time.
  4. FirewallBypassEngine (engines/bypass_engine.py): Executes bypass attempts with session management.

Security Considerations

⚠️ WARNING: This tool is designed for authorized security assessments and penetration testing only. Unauthorized use against systems you do not own or have explicit permission to test is illegal and unethical.

Legal Disclaimer

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.

Author

Pr0Fessor_SnApe


Miftah: Because every firewall has a key. 🔑

About

The Ultimate Firewall Bypasser

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages