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!
}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!
}| 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 |
| 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 |
#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;
}#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);
}
}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
Method 1: Direct File Inclusion | Método 1: Inclusión Directa
- Download
protection.handprotection.cpp - Add them to your project
- Include the header in your main file
- Call
LeuProtection::Initialize()
Method 2: Git Submodule | Método 2: Submódulo Git
git submodule add https://github.com/yourusername/leuprotect-lib.gitPerfect 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
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)
We welcome contributions! | ¡Agradecemos las contribuciones!
- Fork the project | Haz fork del proyecto
- Create your feature branch | Crea tu rama de características
- Commit your changes | Haz commit de tus cambios
- Push to the branch | Push a la rama
- Open a Pull Request | Abre un Pull Request
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.
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
- Discord: leuan
Made with ❤️ for the C++ security community Hecho con ❤️ para la comunidad de seguridad C++