https://github.com/omeryilmazlar/ps-revshell-generator
Python script to generate obfuscated PowerShell reverse shell payloads with multiple levels of obfuscation and optional one-liner output.
https://github.com/omeryilmazlar/ps-revshell-generator
cybersecurity hacking obfuscation penetration-testing powershell powershell-scripts reverse-shell
Last synced: about 1 month ago
JSON representation
Python script to generate obfuscated PowerShell reverse shell payloads with multiple levels of obfuscation and optional one-liner output.
- Host: GitHub
- URL: https://github.com/omeryilmazlar/ps-revshell-generator
- Owner: OmerYilmazlar
- License: mit
- Created: 2025-01-30T00:24:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-30T00:25:17.000Z (over 1 year ago)
- Last Synced: 2025-03-25T06:45:17.769Z (over 1 year ago)
- Topics: cybersecurity, hacking, obfuscation, penetration-testing, powershell, powershell-scripts, reverse-shell
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerShell Reverse Shell Generator
This Python script produces a customized PowerShell reverse shell payload with various obfuscation levels (0 through 3). It can also generate a single-line PowerShell command for quick copy-paste execution.
## Features
1. Command-line arguments for IP, port, and output file.
2. Obfuscation levels:
• Level 0: No obfuscation
• Level 1: Adds junk code and random variable names
• Level 2: Includes Base64-encoded IP addresses and random character casing
• Level 3: Encrypts the IP address with AES and includes a built-in decryption function
3. Optionally converts the final payload to a single-line command with the `--oneliner` flag.
## Usage
python generator.py --ip --port [--output ] [--obfuscate 0|1|2|3] [--oneliner]
Example:
python generator.py -i 192.168.1.10 -p 8080 --obfuscate 3 -o shell --oneliner
This will generate a heavily obfuscated payload (level 3) and produce it as a one-liner saved to shell.ps1.
## Security Notice
This tool is intended for authorized security testing and educational purposes only. Refrain from using it against any assets without explicit permission. Unauthorized usage is both unethical and illegal.