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.4.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.4-py3-none-any.whl (75.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kil0p3-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 b4051e3a46e6ab33f602c47b348e11bd97d07ce5fa9f098c11a1a36f5d680840
MD5 d2874f37f894321cb633605216a3716d
BLAKE2b-256 1c64124a6febacb2f3eda89d0a92abc5d01696a580aa89a54b364ca88efa0c85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kil0p3-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a455caeceeabb68b76f34010f51c051c4ce98e2583e14a52624711bb92c8d395
MD5 3a1321129d3ae8e1c01adcf3b5596b6e
BLAKE2b-256 5db5be7bcf388884621a83d7bb91ad81082487e09a8acddb855e325f13c5c944

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