Advanced Python Application Protection Library with automatic license validation
Project description
🔐 Kil0p3 - Advanced Python Application Protection
Automatic protection activation on import - Just add one line to protect your Python applications!
import kil0p3 # 🛡️ Protection starts automatically!
✨ Features
- 🔑 License validation with digital signatures
- 🖥️ Hardware ID (HWID) binding
- 🚫 Anti-debugging protection
- 🔍 Code integrity verification
- 🚨 Automatic blocking on violations
- 🛠️ Development mode for testing
- 🌐 Cross-platform (Windows, Linux, macOS)
🚀 Quick Start
Installation
pip install kil0p3
Basic Usage
For Development:
import os
os.environ['KIL0P3_DEV_MODE'] = '1' # Disable protection for development
import kil0p3
print(f"Version: {kil0p3.get_version()}")
print(f"HWID: {kil0p3.get_hwid()}")
For Production:
import kil0p3 # 🔒 Full protection automatically enabled
# Your protected application code here...
print("Application is now protected!")
📖 API Reference
Status Functions
import kil0p3
# Get protection status
status = kil0p3.get_status()
print(status) # {'version': '1.0.0', 'protection_active': True, ...}
# Check if protection is active
protected = kil0p3.is_protected()
print(f"Protected: {protected}")
# Get hardware ID
hwid = kil0p3.get_hwid()
print(f"Hardware ID: {hwid}")
License Management
# Set license programmatically
success = kil0p3.set_license("KLP-XXXX-XXXX-XXXX-XXXX")
if success:
print("License activated successfully!")
# Check license validity
valid = kil0p3.check_license()
print(f"License valid: {valid}")
🛡️ How It Works
- Automatic Activation: Protection starts immediately when you import the library
- License Verification: Validates license keys with cryptographic signatures
- Hardware Binding: Ties licenses to specific hardware configurations
- Runtime Protection: Monitors for debugging, tampering, and violations
- Graceful Handling: Shows user-friendly activation windows when needed
⚙️ Configuration
Development Mode
For development and testing, disable protection:
import os
os.environ['KIL0P3_DEV_MODE'] = '1' # Must be set BEFORE import
import kil0p3
Environment Variables
KIL0P3_DEV_MODE=1- Disable protection for developmentKIL0P3_LOG_LEVEL=DEBUG- Enable debug logging
🔧 Advanced Usage
Custom License Validation
import kil0p3
# Get detailed license information
license_info = kil0p3.get_license_info()
if license_info:
print(f"License Type: {license_info['type']}")
print(f"Expires: {license_info['expires']}")
print(f"Days Remaining: {license_info['days_remaining']}")
Integration with Your Application
import os
import sys
# Set development mode if needed
if '--dev' in sys.argv:
os.environ['KIL0P3_DEV_MODE'] = '1'
# Import protection FIRST
import kil0p3
# Your application code
def main():
if not kil0p3.is_protected():
print("⚠️ Running in development mode")
else:
print("🔒 Application protected")
# Your main application logic here...
if __name__ == "__main__":
main()
📋 License Key Format
License keys follow the format: KLP-XXXX-XXXX-XXXX-XXXX
Example: KLP-8G3X-RJ92-YJ7Z-2KMN
🎯 Use Cases
- Commercial Software: Protect paid Python applications
- Internal Tools: Secure company-internal scripts and tools
- SaaS Applications: Add license validation to cloud services
- Desktop Applications: Protect PyQt/Tkinter applications
- CLI Tools: Secure command-line utilities
🔒 Security Features
Anti-Debugging
- Detects popular debuggers (IDA, x64dbg, OllyDbg)
- Monitors for debugging modules and trace functions
- Automatic application termination on detection
Code Integrity
- File hash verification
- Import tampering detection
- Runtime modification monitoring
Hardware Binding
- Unique hardware fingerprinting
- CPU, motherboard, and disk serial numbers
- MAC address validation
Network Validation
- IP address restrictions
- Geolocation blocking
- License server communication
📚 Documentation
🤝 Support
- 📧 Email: support@kil0p3.dev
- 🐛 Issues: GitHub Issues
- 📖 Documentation: kil0p3.dev
⚖️ License
This library is proprietary software. See LICENSE for details.
Made with 🔒 by the Kil0p3 Security Team
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kil0p3-1.0.2.tar.gz.
File metadata
- Download URL: kil0p3-1.0.2.tar.gz
- Upload date:
- Size: 50.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c92113c6bff261155bfea86c3d0663be372c316c3143f2058778be0383a3737
|
|
| MD5 |
95e4c53fdae41f5ee3c74ee6a36c19b7
|
|
| BLAKE2b-256 |
aff87d086e0a77e91e0c08fbf30c0c58e027f6056b31bd00af48eaa91b890a8a
|
File details
Details for the file kil0p3-1.0.2-py3-none-any.whl.
File metadata
- Download URL: kil0p3-1.0.2-py3-none-any.whl
- Upload date:
- Size: 64.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e90e0a33c06e71db196d6c71ba9d743178bfc6e8ebe0de2bf1bc8c9f78e0614d
|
|
| MD5 |
3f7e8b8a674f176ee75c6943468dfba0
|
|
| BLAKE2b-256 |
a64d34b945c5b3caba6ca8e50a91e398bee20d247582dfc7f3a37d870d4b1a4f
|