Protected XApp core module
Project description
๐ฅ XApp Token Tool - Protected Module
EXTREME Protection Level - Your source code is compiled to bytecode (.pyc) which is nearly impossible to reverse engineer!
๐ก๏ธ What You Get
โ
Complete Protection: Source code hidden in bytecode (.pyc)
โ
Cross-Platform: Works on Termux, Linux, Windows, Mac, Raspberry Pi
โ
No Exe/App: Pure Python bytecode - runs anywhere
โ
HTML Hidden: All web interface embedded in protected module
โ
No Decompilation: Advanced bytecode optimization prevents reverse engineering
๐ฆ Package Structure
xapp_protected/ โ SHARE ONLY THIS FOLDER
โโโ __init__.py โ Loader (safe to share)
โโโ __pycache__/
โโโ xapp_core.cpython-312.pyc โ PROTECTED BYTECODE (your secret sauce)
run.py โ Public dummy code (safe to share)
requirements.txt โ Dependencies list
๐ Installation
For Termux (Android):
# Update packages
pkg update && pkg upgrade
# Install Python
pkg install python
# Install dependencies
pip install -r requirements.txt
# Run the tool
python run.py
For Linux/Mac:
# Install dependencies
pip3 install -r requirements.txt
# Run the tool
python3 run.py
For Windows:
# Install dependencies
pip install -r requirements.txt
# Run the tool
python run.py
๐ฏ Usage
-
Start the server:
python run.py -
Access the web interface:
- Local:
http://localhost:10170 - Network:
http://YOUR_IP:10170
- Local:
-
Features available:
- OAuth login (Facebook, Gmail, VK, Apple, Twitter)
- Guest token generation
- JWT token processing
๐ Protection Explained
What Users See:
# run.py (dummy code)
from xapp_protected import create_app
def main():
app = create_app()
app.run(host='0.0.0.0', port=10170)
What Users DON'T See:
- AES encryption keys
- Protocol buffer definitions
- API endpoints logic
- HTML templates
- All your secret algorithms
Why It's Protected:
- Bytecode Compilation: Source code โ Binary bytecode
- Optimization Level 2: Maximum obfuscation
- No Source Files: Only .pyc distributed
- Import Protection: Dynamic loading prevents extraction
๐ค Distribution Guide
What to Share:
your_package/
โโโ xapp_protected/ โ SHARE THIS
โ โโโ __init__.py
โ โโโ __pycache__/
โ โโโ xapp_core.cpython-312.pyc
โโโ run.py โ SHARE THIS
โโโ requirements.txt โ SHARE THIS
What to KEEP SECRET:
- โ xapp_core.py (original source)
- โ setup.py (compilation script)
- โ Any .py files in your development folder
๐ง Advanced Protection Tips
-
Delete Source After Compilation:
rm xapp_core.py rm setup.py
-
Different Python Versions:
- The .pyc file is version-specific
- Users need Python 3.12 to run this bytecode
- For other versions, recompile with that Python version
-
Even More Protection:
- Add fake comments in run.py
- Use misleading variable names in public code
- Add red herrings that do nothing
๐ Network Access
Local Access:
http://localhost:10170
Remote Access (Termux):
# Find your IP
ifconfig
# Access from browser
http://YOUR_IP:10170
Port Forwarding:
# In Termux, you can use ports 8000-9999 without root
# Modify run.py to change port if needed
โ FAQ
Q: Can users see my code?
A: No! They only get the .pyc bytecode file which is compiled machine code.
Q: Can they decompile the .pyc file?
A: Extremely difficult. Bytecode decompilation tools exist but:
- They produce unreadable code
- Variable names are lost
- Logic is obfuscated
- Comments are gone
- Many decompilers fail on optimized bytecode
Q: Does it work on Termux?
A: Yes! Tested and working perfectly on Termux.
Q: Do I need to compile an app?
A: No! It's pure Python bytecode. No exe, no apk needed.
Q: What if users have different Python versions?
A: You can create bytecode for multiple versions:
python3.8 setup.py # Creates .pyc for Python 3.8
python3.9 setup.py # Creates .pyc for Python 3.9
python3.12 setup.py # Creates .pyc for Python 3.12
๐ For Developers
If you want to modify the protected code:
- Edit
xapp_core.py - Run
python setup.pyto recompile - Test with
python run.py - Distribute only the
xapp_protected/folder +run.py
๐ License
Your original license here.
๐จโ๐ป Author
XR - @xrprime23
โ ๏ธ SECURITY NOTICE:
- Never share xapp_core.py (source file)
- Only distribute xapp_protected/ folder
- Keep setup.py private
- The .pyc file is your protected intellectual property
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 xapp_protected-0.1.0.tar.gz.
File metadata
- Download URL: xapp_protected-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6f69255a6c0c29a9dbe08c9dae957d2fe301cb919d82a7b81659c59402bd35c
|
|
| MD5 |
ea0efa09410fb8c7098b5edb9ce582f1
|
|
| BLAKE2b-256 |
0b2bb0e9c90865150aff79c71d539234777e4f562faa6f3abc737316dc86098d
|
File details
Details for the file xapp_protected-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xapp_protected-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4d220c8cd3f72c298797a2486a2ddd897b1c0f97cca0635a1505d8cf408e7a
|
|
| MD5 |
9435f113670d60a3b858398cbc4c0854
|
|
| BLAKE2b-256 |
a1fca142fc1b24d338468cee88589e5182c676ddb92bdec886aa025b2e387759
|