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.0.tar.gz (48.1 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.0-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kil0p3-1.0.0.tar.gz
  • Upload date:
  • Size: 48.1 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.0.tar.gz
Algorithm Hash digest
SHA256 20741180df61de811a84ab3a40a71fb591d7483292c6799fd1a2cbd1f005fed6
MD5 ed50cc2c375782c771671483a5395f5a
BLAKE2b-256 162a2317391d681341c17d4822c87ab637a6bebcd2de2a095e767ebf461cfa6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kil0p3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 60.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7380e818b543f6268d3757363494c414bb77644089338dbdb9cd1c66b2a89eb2
MD5 60a902c9512fe1f5993f5f081ef3bd06
BLAKE2b-256 d9ccf8b820776b98bd55c57a2c6cee1ed65953fd7ae82c6916b4872cb995ca1f

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