Skip to content

d3fpy/marhsal-deobfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

marhsal-deobfuscator

Python Deobfuscator

A simple script to unpack and deobfuscate Python files. It automatically extracts data from exec() blocks, strips security layers, and restores the source code.

πŸ”₯ How It Works

The script strips encoding and compression layers step by step: Reverse βž” Base64 βž” Zlib βž” LZMA βž” Gzip βž” Marshal

πŸ“¦ Installation

To restore full source code, install the decompiler:

pip install uncompyle6

If this library is missing, the script will output Python bytecode using the dis module instead.

πŸ’» Usage

  • Print result to terminal:

    python decompiler.py obfuscated.py
  • Save clean code to a file:

    python decompiler.py obfuscated.py -o clean.py

πŸ›  Arguments

  • input β€” Path to the protected file.
  • -o, --output β€” Path to save the decoded file (optional).

About

a simple script to unpack and deobfuscate Python files.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages