REDD's Encrypted Payload Generator - Generates a BadUSB/DuckyScript payload.txt from prior ps1(PowerShell) AND py(Python) Scripts.
This is a simple project aimed at making other people's PowerShell scripts AND Python scripts be easily converted for everyone to use. - While throwing a bit of Base64 and certutil commands in there to give others more ideas on what can and could be possible.
PS> .\encode.ps1 helloworld.ps1
OR
Drag and Drop helloworld.ps1
onto DragNDropHERE-Hak5.cmd
.
PS> .\encode.ps1 helloworld.ps1 -flipper
OR
Drag and Drop helloworld.ps1
onto DragNDropHERE-Flipper.cmd
.
Notice: * = This is just a example syntax using the provided "helloworld.ps1" in this repo.
You may run into Windows 11 Machines and rare cases Windows 10 Machines that give "File cannot be loaded because running scripts is disabled on this system.".
You can run the "allowps.txt" BadUSB/Duckyscript provided in the repo to automatically do it for
you, or you can run the command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
in a PowerShell Terminal.