AT Tiny85 as Keyboard

Emulate a keyboard

(There is a problem with keyboard layout)

#include "DigiKeyboard.h";

void setup() { 

void loop() { 
  DigiKeyboard.println("Ah Ah");

To use softserial and digikeyboard on the same sketch need this librairie (

<div class="attachments-files">

                <a href="/articles/iot/attiny85/_index.files/" >
                (22 ko)


Copy the lib into :

void runTheExe(char *SomeCommand)
  Keyboard.set_modifier(128); # Set modifier key - Windows
  Keyboard.set_key1(KEY_R); # Set key 'r'
  Keyboard.send_now(); # Action of pressing of Windows + R
  Keyboard.set_modifier(0); # Setting modifier to 0
  Keyboard.set_key1(0); # Setting key to 0
  Keyboard.send_now(); # Action of releasing the keys
  delay(1500); # Delay to let you see what happens. Change this to a lower value during real operations.
  ascii_println(SomeCommand); # send a string as input

  runTheExe("notepad"); # We open notepad.
  delay(100); # Only to help you feel something is being done
  //Enter the payload below
  ascii_println("You have been Hax0red"); # We type the string that we wanted

Arduino code for your ESP8266. Deauthenticate all clients from all access points