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_Profile_Mailer does not work #40

Open
ghost opened this issue Feb 4, 2020 · 3 comments
Open

WiFi_Profile_Mailer does not work #40

ghost opened this issue Feb 4, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 4, 2020

WiFi_Profile_Mailer sketch does not work.
I entered USERNAME and PASSWORD where requested and filled in.
I use an Italian keyboard with Windows 10.
Could it be the keyboard layout? Eventually how can I edit the sketch?
Thank you.

@apsecdev
Copy link
Contributor

apsecdev commented Feb 4, 2020

WiFi_Profile_Mailer sketch does not work.
I entered USERNAME and PASSWORD where requested and filled in.
I use an Italian keyboard with Windows 10.
Could it be the keyboard layout? Eventually how can I edit the sketch?
Thank you.

There are several things that could be going wrong there. Which version are you using with which version of Windows? Where does it fail? Will the sketch not compile or does it not successfully send the email?

@ghost
Copy link
Author

ghost commented Feb 4, 2020

I'm using the WiFi_Profile_Mailer.ino file with IDE Arduino 1.8.10 and Windows10, Italian keyboard.
Everything is compiled and uploaded.
The cmd.exe starts
and then freezes with this writing:

C:\Users\Flavio>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°
In riga:1 car:7

  • 'NoP 'NonI 'W Hidden 'Exec Bypass °)netsh wlan show profiles= § Selec ...
  •   ~~~~
    

Token 'NonI' imprevisto nell'espressione o nell'istruzione.
In riga:1 car:36

  • 'NoP 'NonI 'W Hidden 'Exec Bypass °)netsh wlan show profiles= § Selec ...
  •                                ~
    

Token ')' imprevisto nell'espressione o nell'istruzione.
In riga:1 car:221

  • ... file nameì$name keyìclear=* § Select'String àKey ContentùWùç).=$à § % ...
  •                                                             ~
    

Token ')' imprevisto nell'espressione o nell'istruzione.
In riga:1 car:268

  • ... y ContentùWùç).=$à § %é$passì$?.Matches.Groupsè1+.Value.Trim)=ò $?* § ...
  •                                                             ~
    

Token ')' imprevisto nell'espressione o nell'istruzione.
In riga:1 car:343

  • ... mObject+é PROFILE?NAMEì$nameòPASSWORDì$pass ** § Export'Csv temp.csv°
  •                                                        ~~~~~~~~~~~~~~
    

Carattere di terminazione mancante nella stringa: '.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

C:\Users\Flavio>

@apsecdev
Copy link
Contributor

apsecdev commented Feb 4, 2020

I'll be 100% honest with you here. While I am very familiar with powershell, I am not at all familiar with what format and structure powershell uses in languages outside of english. In looking at your posted code and spending a couple minutes with google translate, I'd wager that your assumption of the Italian keyboard being the issue to be correct. It appears that some characters are being substituted. For example in the first error you posted above.

This:
Powershell 'NoP 'NonI 'W Hidden 'Exec Bypass °)...etc

should be this:
powershell -NoP -NonI -W Hidden -Exec Bypass "(...etc.

If I were in your shoes, my first troubleshooting step would be to use the Italian keyboard layout for digispark.

https://github.com/Maiux92/digispark-keyboard-layout-italian

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

1 participant