Monday, May 24, 2010

How do you make a keylogger in c++? (for educational purposes at my classes)?

i have chosen to programme this for my claases, could anywone tell me the answer (e-mail) or direct me to a tutorial

How do you make a keylogger in c++? (for educational purposes at my classes)?
If you want to make it in C or C++ you need to make a program that is TSR i.e. Terminate and Stay Resident ... Such kind of programs stay in memory even if you exit Turbo C or Dos Shell...





Once you learn to make that... then learn to how to write Interrupt Vectors ... and then you have to replace the function that resopnds to keyboard interrupt with your own.. in which you will be intercepting all the keys and storing them all to a buffer or any other file... and then calling normal keyboard interrupt vector function again...





So that is the procedure...





If you want to learn more about that you can refer Yashwant Kanetkar's book about Terminate and Stay Resident Programs... in that he has given a C code for a key logger...





Hope this answer will satisfy you...
Reply:You have to use SetWindowsHook. Look at the link below for more information.


PS: a keyboard hook is a possibility under the Windows operating systems, it's not at all ilegal or hacker-related.
Reply:Umm.. I'm trying to make a program that feeds the computer keyboard input. (Reverse kelogger)





Haven't figured it out, however, do some research on the keyboards in/out port.
Reply:Yes sure educational. Hackers make their way alone, sorry.


No comments:

Post a Comment