CedArctic / DigiSpark-Scripts

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

WiFi_Profile_Mailer does not work #40

Open ghost opened 4 years ago

ghost commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

C:\Users\Flavio>

apsecdev commented 4 years ago

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