Skip to content

Leuansin/LeuProtect-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

🛡️ LeuProtect Library 🛡️

One-line C++ protection for Windows executables

Protección C++ para ejecutables Windows

Version License Platform C++

🌟 About | Acerca de

LeuProtect Library is a lightweight, powerful C++ library designed to protect your Windows executables from reverse engineering, debugging, memory scanning, VM detection, sandbox analysis, and cracking tools with just one function call.

LeuProtect Library es una librería C++ ligera y poderosa diseñada para proteger tus ejecutables Windows de ingeniería inversa, debugging, escaneo de memoria, detección de máquinas virtuales, análisis de sandbox y herramientas de cracking con una sola llamada de función.

#include "protection.h"

int main() {
    // The rest of your beautiful code
    // El resto de tu hermoso código

    LeuProtect::Initialize();  // That's it! | ¡Eso es todo!
}

🚀 Quick Start | Inicio Rápido

English Version

Add files to your project

📁 YourProject/
├── protection.h
├── protection.cpp
└── main.cpp

Include and initialize

#include "protection.h"

int main() {
    // Your application code

    LeuProtect::Initialize();  // Protection activated!
}

Versión en Español

Agrega los archivos a tu proyecto

📁 TuProyecto/
├── protection.h
├── protection.cpp
└── main.cpp

Incluye e inicializa

#include "protection.h"

int main() {
    // Tu código de aplicación

    LeuProtect::Initialize();  // ¡Protección activada!
}

🛡️ Features | Características

Protection Features | Características de Protección

Feature Description Descripción
Multi-Layer Debugger Detection Combines API checks, PEB, hardware breakpoints, checksum verification, window detection, registry keys, and timing analysis Combina verificaciones de API, PEB, puntos de interrupción hardware, verificación de checksum, detección de ventanas, claves de registro y análisis de tiempo
Memory Protection Uses VirtualProtect to secure memory regions Usa VirtualProtect para proteger regiones de memoria
Code Obfuscation Runtime code modification to hinder static analysis Modificación de código en tiempo de ejecución para dificultar análisis estático
PE Header Protection Secures and obfuscates PE headers Protege y ofusca headers PE
Anti-VM & SandBox Detects if the executable is running on a Virtual Machine or a SandBox environment Detecta si el ejecutable está corriendo en una Máquina Virtual o en un ambiente SandBox
Advanced VM Detection Checks for VM processes, registry keys, specific values, low resources, CPUID, VendorID, and device objects Verifica procesos de VM, claves de registro, valores específicos, recursos bajos, CPUID, VendorID y objetos de dispositivo
Sandbox Detection Detects sandbox processes and analysis tools Detecta procesos de sandbox y herramientas de análisis
Anti-Cracking Tools Detects and blocks known cracking tools and patchers Detecta y bloquea herramientas de cracking y parcheadores conocidos
DLL Injection Protection Monitors and blocks malicious DLLs Monitorea y bloquea DLLs maliciosas
AuthKey Protection Protects against hosts file tampering, certificate manipulation, and suspicious directories Protege contra manipulación de archivos hosts, certificados y directorios sospechosos
Continuous Monitoring Real-time protection monitoring Monitoreo en tiempo real de la protección
Process Hiding Optional process hiding capabilities Opcional Oculta el proceso

⚡ Technical Features | Características Técnicas

Feature Description Descripción
Lightweight Minimal performance impact Impacto mínimo en el rendimiento
Easy Integration Single header and source file Un solo archivo header y fuente
Cross-Platform Windows 7/8/10/11 support Soporte para Windows 7/8/10/11
No Dependencies Pure C++17, no external libraries C++17 puro, sin librerías externas

📖 Usage Examples | Ejemplos de Uso

Basic Protection | Protección Básica

#include "protection.h"
#include <iostream>

int main() {
    // Initialize all protections
    // Inicializar las protecciones
    LeuProtection::Initialize();

    std::cout << "Application is now protected!" << std::endl;
    std::cout << "¡La aplicación está ahora protegida!" << std::endl;
}

Advanced Configuration | Configuración Avanzada

#include "protection.h"
#include <windows.h>

int main() {
    // Initialize protections
    // Inicializar protecciones
    LeuProtection::Initialize();

    // Check if debugger is detected and close it
    // Verificar si se detecta un debugger y cerrarlo
    if (LeuProtection::IsDebuggerDetected()) {
        ExitProcess(0);
    }
}

🏗️ API Reference | Referencia de API

Core Functions | Funciones Principales

// Initialize all protections | Inicializar todas las protecciones
void LeuProtection::Initialize();

// Check if debugger is detected | Verificar si se detecta un debugger
bool LeuProtection::IsDebuggerDetected();

// Shutdown protection system (optional) | Apagar sistema de protección (opcional)
void LeuProtection::Shutdown();

// Keeps Monitoring for debuggers activated and if found them. Kill the process (Optional) | Mantiene el monitoreo para debuggers y si los encuentra, mata el proceso (opcional)
void LeuProtection::ContinuousMonitoring();

Protection Components | Componentes de Protección

  • Memory Protection - VirtualProtect security
  • Anti-Debugging - Debugger detection and prevention
  • Code Obfuscation - Runtime code modification
  • PE Security - Header protection and cleaning
  • Process Security - Memory and process hiding
  • Anti-VM & Sandbox - Virtual machine and sandbox detection
  • Anti-Cracking - Detection of cracking tools and patchers
  • DLL Injection Protection - Blocking malicious DLLs
  • AuthKey Protection - Protection against authentication bypass

🔧 Installation | Instalación

Method 1: Direct File Inclusion | Método 1: Inclusión Directa

  1. Download protection.h and protection.cpp
  2. Add them to your project
  3. Include the header in your main file
  4. Call LeuProtection::Initialize()

Method 2: Git Submodule | Método 2: Submódulo Git

git submodule add https://github.com/yourusername/leuprotect-lib.git

🎯 Use Cases | Casos de Uso

Perfect for | Perfecto para:

  • Game Ch3ats & Mods - Protect your externals, exes or any other kind of executables
  • Anti-Cracking - Prevent reverse engineering
  • DRM Systems - Software protection
  • Sensitive Applications - Security-critical software

⚠️ Important Notes | Notas Importantes

Legal Disclaimer | Aviso Legal

This library is intended for educational and legitimate protection purposes only. Users are responsible for complying with all applicable laws and regulations.

Esta librería está destinada solo para fines educativos y de protección legítima. Los usuarios son responsables de cumplir con todas las leyes y regulaciones aplicables.

Technical Notes | Notas Técnicas

  • ✅ Works with: Visual Studio, GCC, Clang on Windows
  • ✅ Compatible with: C++17 and above
  • ✅ Tested on: Windows 7, 8, 10, 11
  • ⚠️ Anti-cheat compatibility: May trigger some anti-cheat systems (if you know what you are doing, you will bypass this easily)

🤝 Contributing | Contribuyendo

We welcome contributions! | ¡Agradecemos las contribuciones!

  1. Fork the project | Haz fork del proyecto
  2. Create your feature branch | Crea tu rama de características
  3. Commit your changes | Haz commit de tus cambios
  4. Push to the branch | Push a la rama
  5. Open a Pull Request | Abre un Pull Request

📄 License | Licencia

This project is licensed under the MIT License - All creditos to Leuan. Este proyecto está bajo la Licencia MIT - Todos los créditos a Leuan.


🐛 Reporting Issues | Reportar Problemas

Found a bug? Have a feature request? | ¿Encontraste un bug? ¿Tienes una solicitud de característica?

Open an issue on GitHub: https://github.com/yourusername/leuprotect-lib/issues


📞 Support | Soporte

  • Discord: leuan

Made with ❤️ for the C++ security community Hecho con ❤️ para la comunidad de seguridad C++

About

One-line C++ protection for Windows executables | Una línea de protección C++ para ejecutables Windows

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages