Pyfuscator
Pyfuscator is a Python tool designed to obfuscate Python scripts by encoding and encrypting them. It allows you to transform your Python code into an obfuscated form, which can help in hiding the logic of the script and potentially evade basic static analysis.
Install / Use
/learn @malwarekid/PyfuscatorREADME
Pyfuscator
Overview
- Pyfuscator is a Python tool designed to obfuscate Python scripts by encoding and encrypting them. It allows you to transform your Python code into an obfuscated form, which can help in hiding the logic of the script and potentially evade basic static analysis.
Features
- Python Code Obfuscation: Converts Python code into a base64-encoded and XOR-encrypted format to make it harder to understand.
- Simple CLI Interface: Provides an easy-to-use command-line interface for inputting code and generating obfuscated output.
- Customizable Output: Allows specifying the output file name for the obfuscated code.
- Base64 Encoding & XOR Encryption: Utilizes base64 encoding combined with XOR encryption for added obfuscation.
How to Use
-
Clone the Repository:
git clone https://github.com/malwarekid/Pyfuscator.git && cd Pyfuscator -
Run the Script:
python3 Pyfuscator.py
____ ____ __
/ __ \__ __/ __/_ ________________ _/ /_____ _____
/ /_/ / / / / /_/ / / / ___/ ___/ __ `/ __/ __ \/ ___/
/ ____/ /_/ / __/ /_/ (__ ) /__/ /_/ / /_/ /_/ / /
/_/ \__, /_/ \__,_/____/\___/\__,_/\__/\____/_/
/____/
By @malwarekid
Welcome to Pyfuscator!
Enter your python code to obfuscate (leave empty for program path):
Enter your python program path: hello.py
Enter your obfuscated program name (default obfuscate.py): hello-obf.py
Obfuscated program has been saved as hello-obf.py
-
Enter Input Parameters:
- Python Code: Enter the Python code you wish to obfuscate directly or provide the path to a Python script file.
- Obfuscated Program Name: Specify the name of the output file for the obfuscated code (default is
obfuscate.py).
-
Output File: The obfuscated Python code will be saved in the specified output file.
Requirements
- Python 3.x
coloramamodule
Installation
Ensure you have the required dependencies:
pip3 install colorama
Example
Run the script:
python3 Pyfuscator.py
When prompted:
Enter your python code to obfuscate (leave empty for program path):
Enter your python program path:
Enter your obfuscated program name (default obfuscate.py):
The script will generate an obfuscated Python file with the name you specified.
Contributors
License
This project is licensed under the MIT License - see the LICENSE file for details.
Notes
Feel free to contribute, report issues, or provide feedback. Don't forget to follow me on Instagram and GitHub. Happy Obfuscating!
Related Skills
claude-opus-4-5-migration
110.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
351.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
