This Python script generates a Visual Basic Script (VBS) stager that reads and executes a PowerShell script from a given URL. It also provides an option to add persistence to the generated stager.
- Generates a VBS stager to reads and execute a PowerShell script from URL.
- Optional persistence feature to automatically run the stager on system startup.
- Colorized terminal output for a better user experience.
- Python 3.x
pyfiglet
librarycolorama
library
-
Clone this repository:
git clone https://github.com/malwarekid/VBS-Stager.git
-
Install the required libraries:
pip3 install pyfiglet colorama
-
Run the script:
python3 VBS-Stager.py
python3 VBS-Stager.py
_ ______ _____ _____ __
| | / / __ ) ___/ / ___// /_____ _____ ____ _____
| | / / __ \__ \______\__ \/ __/ __ `/ __ `/ _ \/ ___/
| |/ / /_/ /__/ /_____/__/ / /_/ /_/ / /_/ / __/ /
|___/_____/____/ /____/\__/\__,_/\__, /\___/_/
/____/
By @malwarekid
Enter the URL of the PowerShell script: https://raw.githubusercontent.com/malwarekid/GoodUSB/master/msg.ps1
Enter the output file name (default: stager.vbs):
Do you want to add persistence to the stager? (yes/no, default: no): yes
Stager script saved to stager.vbs
-
Enter the URL of the PowerShell script when prompted.
-
Optionally, specify the output file name. If not specified, the default name is
stager.vbs
. -
Choose whether to add persistence to the stager. Enter
yes
orno
. The default isno
. -
The generated stager script will be saved to the specified output file.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute, report issues, or provide feedback and dont forget to follow me on Instagram and github Happy Hacking!