Skip to main content

One-Line and Obfuscated Python

Project description

OLOP: One-Line & Obfuscated Python

This repository contains useful python modules for one-line and obfuscated python.

Wiki: FAQ and OLP Tips and Tricks

One-Line python (olp)

These files are located within ./olp

olp.py: primitives within olp to be imported for olp scripts

  • __import__("olp").primitives
  • includes: one-line while loop, one-line do while loop,

oldec.py: a one-line python decoder file which can be called from a python script. Common Usage:

globals().update(oldec = __import__("oldec")) or oldec.beautify(oldec.parse_recursive("SOME_OLP_STRING"))

or, for non olp programmers

import oldec

code = oldec.beautify(oldec.parse_recursive("SOME_OLP_STRING"))

NOTE: oldec.py cannot fully parse any one-line python file, as they can take numerous different forms, and it looks for specific aspects within some one-line python programs (it doesn't work on itself either)

oldec_cmd.py: a one-line python decoding command line utility, for decoding olp outside of a python script. Common Usage:

python oldec_cmd.py <olp_file.py> -r -b

python oldec_cmd.py can also be used to see usage information.

Obfuscated Python

Prototyping this is still a work in progress.

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

olop-ShadowLugia650-0.0.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

olop_ShadowLugia650-0.0.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page