| | |
Key loggers
![]() |
Hi guys, I'm from India, I'm doing my first year IT. We have been asked to submit a mini project, so i was trying to develop a keylogger using c, but my keylogger senses keys only within the editor and the output screen, is it possible to do that using keyboard buffers and vid mem buffers??? Please can anyone help me out. By the way don't get me in a wrong sense, I'm just curious, if I know how it is being done, maybe i can develop another program to counter it.
Last edited by s_sridhar; Mar 10th, 2009 at 4:22 am. Reason: for clarity
Its hard to answer without details of the environment/IDE/compiler you are using.
I am guessing your are using a DOS mode IDE like Turbo C/C++. If it is so your program will run in the DOS (16-bit) environment of Windows and it cannot interact with the rest of the applications running in Windows. As you said the keylogger will only work within the DOS environment (the editor and the program output screen)
If you want to develop a true keylogger for Windows in C, you'll have to learn Win32 API and write some sort of keyboard hook I guess.
I am guessing your are using a DOS mode IDE like Turbo C/C++. If it is so your program will run in the DOS (16-bit) environment of Windows and it cannot interact with the rest of the applications running in Windows. As you said the keylogger will only work within the DOS environment (the editor and the program output screen)
If you want to develop a true keylogger for Windows in C, you'll have to learn Win32 API and write some sort of keyboard hook I guess.
>We have been asked to submit a mini project, so i was trying to develop a keylogger using c.
http://www.rohitab.com/discuss/lofiv...hp/t14610.html
If you want to submit a Trojan Horse for your project, PM me and I'll email you the source code sweetie.
Cheers.
http://www.rohitab.com/discuss/lofiv...hp/t14610.html
If you want to submit a Trojan Horse for your project, PM me and I'll email you the source code sweetie.
Cheers.
Last edited by iamthwee; Mar 10th, 2009 at 6:42 pm.
*Voted best profile in the world*
•
•
Join Date: Apr 2008
Posts: 118
Reputation:
Solved Threads: 12
What a horror !!!
It is not a keylogger at all !
Ask on Professional Win32 api Group
to learn how to make real keyloggers..
It is not a keylogger at all !
Ask on Professional Win32 api Group
to learn how to make real keyloggers..
There are several ways to develop key loggers on Windows. I'll list them in order worst to best:
1. You could GetAsyncKeyState() from W32 API in a loop, but I guess most of the anti-viruses would detect those easily. But it's worth to try if you are a beginner (I made my own key logger using this way).
2. Windows Hooks. I can't give you more details on those but some say this is a popular way to make key loggers.
3. Writing a malicious keyboard driver. This takes more skills to do, as well as some assembly knowledge.
The next step you'd want to take is to decide how you are going to store data your key logger makes. This depends on the purpose of the key logger. If you do this for fun, then I guess just a plain file would be good, but if you plan to use it the "not right" way or sell it you need to do some Google research. It would probably be e-mailing or sending to a remote host, maybe an FTP server?
Hope this helps
1. You could GetAsyncKeyState() from W32 API in a loop, but I guess most of the anti-viruses would detect those easily. But it's worth to try if you are a beginner (I made my own key logger using this way).
2. Windows Hooks. I can't give you more details on those but some say this is a popular way to make key loggers.
3. Writing a malicious keyboard driver. This takes more skills to do, as well as some assembly knowledge.
The next step you'd want to take is to decide how you are going to store data your key logger makes. This depends on the purpose of the key logger. If you do this for fun, then I guess just a plain file would be good, but if you plan to use it the "not right" way or sell it you need to do some Google research. It would probably be e-mailing or sending to a remote host, maybe an FTP server?
Hope this helps
•
•
Join Date: Mar 2008
Posts: 1,422
Reputation:
Solved Threads: 115
>I'll list them in order worst to best
I wouldn't say that's the best order, why create your own malicious keyboard driver when you can just use a windows hook? But transferring the information that's been logged is out of the question, as long as you get the key strokes, what happens with the data is up to s_sridhar, and doesn't really fit in any of those three points.
I wouldn't say that's the best order, why create your own malicious keyboard driver when you can just use a windows hook? But transferring the information that's been logged is out of the question, as long as you get the key strokes, what happens with the data is up to s_sridhar, and doesn't really fit in any of those three points.
•
•
•
•
The next step you'd want to take is to decide how you are going to store data your key logger makes. This depends on the purpose of the key logger. If you do this for fun, then I guess just a plain file would be good, but if you plan to use it the "not right" way or sell it you need to do some Google research. It would probably be e-mailing or sending to a remote host, maybe an FTP server?
Hope this helps
![]() |
Similar Threads
- [Article] Researching Your Target Audience - Online Tactics (Advertising Sales Strategies)
- what is the best antivirus sftware for WinXp? (Windows Software)
- Can anyone point out any viruses or possible key loggers?Please. (Viruses, Spyware and other Nasties)
- Folder Locking and Hiding in Windows XP (Computer Science)
- Using Global Low-Level Hooks Without Using A Dll (Computer Science)
- I am a beginner in vb programming? (Visual Basic 4 / 5 / 6)
- Need to Log Program Usage (Windows NT / 2000 / XP)
- here's some sites to prevent spyware (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: Problem with gcc and trying to produce assembly file
- Next Thread: Conflicting types warning
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o include incrementoperators input interest kernel kilometer linked linkedlist linux linuxsegmentationfault list lists locate logical_drives loopinsideloop. match matrix meter microsoft motherboard mqqueue mysql number odf open opensource owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socket socketprograming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






