Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

olop-ShadowLugia650

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

olop-ShadowLugia650

One-Line and Obfuscated Python

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

OLOP: One-Line & Obfuscated Python

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

pip install olop-ShadowLugia650

Wiki: FAQ and OLP Tips and Tricks

One-Line python (olp)

These files are located within src/olp

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

__import__("olp").olp.primitives

includes: one-line while loop, one-line do while loop, inheritance

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

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

or, for non olp programmers

from olp import oldec

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

NOTE: oldec.py cannot parse all arbitrary one-line python files, as they can take numerous different forms (such as and OLP vs or OLP), 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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc