Skip to main content

Advanced Python Application Protection Library with automatic license validation

Project description

🔐 Kil0p3 - Advanced Python Application Protection

PyPI version Python 3.8+ License

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

  1. Automatic Activation: Protection starts immediately when you import the library
  2. License Verification: Validates license keys with cryptographic signatures
  3. Hardware Binding: Ties licenses to specific hardware configurations
  4. Runtime Protection: Monitors for debugging, tampering, and violations
  5. 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 development
  • KIL0P3_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

⚖️ 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

kil0p3-1.0.3.tar.gz (62.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kil0p3-1.0.3-py3-none-any.whl (75.7 kB view details)

Uploaded Python 3

File details

Details for the file kil0p3-1.0.3.tar.gz.

File metadata

  • Download URL: kil0p3-1.0.3.tar.gz
  • Upload date:
  • Size: 62.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for kil0p3-1.0.3.tar.gz
Algorithm Hash digest
SHA256 718d23e829d24c772e3b025aa7ac34041e8db6b61ad9269bdec158362531254b
MD5 a6c0af9f72bc4c9a5e4929e0c1b622d3
BLAKE2b-256 2938ac58b47aa4515eaae45b77f186310845695bcfdca60b8baadf5ff8d58669

See more details on using hashes here.

File details

Details for the file kil0p3-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: kil0p3-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 75.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for kil0p3-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 427fac8f60e97bb91aee4a9bf0e1d3f64e42123cda461bad4bd9d59a24560299
MD5 32fdfba3d194f4da9a26d22240c1ecc9
BLAKE2b-256 c428325489aec3bc4d45d94f2bdb438a20c7701c916e58972e3f9415fd81882c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page