Prerequisite

  1. Install Arduino IDE ( coding environment )
  2. Install Quack ( electron software to write your attack )

Configuration

  • Set the Chip type to Arduino Leonardo
    Tools > Card type > Arduino Leonardo

Code

#include "Keyboard.h"

void typeKey(uint8_t key)
{
  Keyboard.press(key);
  delay(50);
  Keyboard.release(key);
}

/* Init function */
void setup()
{
  // Begining the Keyboard stream
  Keyboard.begin();

  // Wait 500ms
  delay(500);
  
  // Button Checker
  pinMode(3, INPUT_PULLUP);
  if (digitalRead(3) == LOW) {
        // Your Injection Code
        
    } else {
        // Safe Mode
  }

  // Ending stream
  Keyboard.end();
}

/* Unused endless loop */
void loop() {}

If your target is not a QWERTY keyboard system you need to add

Keyboard.press(KEY_LEFT_GUI);
      Keyboard.press(' ');
      Keyboard.releaseAll();
Only on Windows system

before the Keyboard.print(F("")) Β function to change language but your target might have different configuration, be sure to get the maximum information of your target system before the injection

Get yours !

404usb
404usb is preconfigured to send a custom message on victim computerSpecify the custom message and the operating system of the target while ordering! If you leave it blank I will preconfigure the 404USB on experimented mode,you can find how to configure it manually with 404usb Documentation[/404…