AT Tiny85 as Keyboard

Emulate a keyboard

(There is a problem with keyboard layout)

#include "DigiKeyboard.h";

void setup() { 
  DigiKeyboard.sendKeyStroke(0);
}

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

To use softserial and digikeyboard on the same sketch need this librairie (https://github.com/J-Rios/Digispark_SoftSerial-INT0)

<div class="attachments-files">

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

<div>

Copy the lib into :

~/.arduino15/packages/digistump/hardware/avr/1.6.7/libraries/DigisparkSoftSerial_INT0
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
}

  delay(100);
  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 https://github.com/the-red-team/ESP8266_Deauth_All