Flipper/BadUSB/RickRoll_Term_Win.txt

15 lines
723 B
Plaintext
Raw Normal View History

REM Title: RickRoll
REM Author: Jeffrey Koopman | JKCTech
REM Description: RickRoll in Windows PowerShell
REM Target: Windows
REM
DEFAULTDELAY 50
GUI r
DELAY 500
STRING powershell.exe
ENTER
DELAY 1000
STRING $request = [System.Net.HttpWebRequest]::Create("http://ascii.live/rick");$receiveStream=$request.GetResponse().GetResponseStream();$readStream=[System.IO.StreamReader]::new($receiveStream);[console]::TreatControlCAsInput=$true;$initialForegroundColor=[Console]::ForegroundColor;while($line=$readStream.ReadLine()){if([Console]::KeyAvailable){$key=[System.Console]::ReadKey($true);if(($key.modifiers -band [ConsoleModifiers]"control") -and ($key.key -eq "C")){break;}}[Console]::WriteLine($line);}
ENTER
GUI UPARROW