Is is possible to create a keylogger program using java?
I know the method to get the keys entered in the our application window..
But how the keys entered in the other windows can be stored to a file?
Please help here or post the links of such programs.
Thanks in advance.
No, you can't catch keyevents outside the java program. You will probably need use JNI to link to another program written in some other language or not use java at all.
Are there any 'good' reasons to build a keylogger? 
If you know how to access the windows-api, you can use GetAsyncKeyState(VirtualKeyCode)
| TomS wrote: |
| If you know how to access the windows-api, you can use GetAsyncKeyState(VirtualKeyCode) |
thanks for your post.
Could you please post an example for the above function?
Keylogger can be made by hooking keyboard in C++. Can't that be done in java?
I hope there's nothing in the TOS that goes against posting something like this. I can post uncompiled code in C for a keylogger, but I'm not going to because I haven't read a good reason in this thread yet.
why are keyloggers made:
1. to steal passwords.
2. to steal privacy...
parents that want to check on their kids
paranoid people that don't trust their partner
and there is a third kind.... people that don't have a life of their own!!
sorry guys, but I think this is a little over the top... there may be a hacker in all of us... but still... keylogger?....wtf
besides... script kiddies ask this kind of stuff....
| ProfessorY91 wrote: |
| I hope there's nothing in the TOS that goes against posting something like this. I can post uncompiled code in C for a keylogger, but I'm not going to because I haven't read a good reason in this thread yet. |
ProfessorY91
You are absolute right !!
I like to see someone that to build their programming skill to a next level and to create a much better apps for users.
But I can't see any good reasons to do that as mentioned on the post above.
Also, you may be able to google or look for some more advanced windows programming book.
That will tell you all stuffs you need to know to build a system-level application.
Since keylogging is such a low-level task, why make it in java? It's too high level for this kind of program. Use C or similar language. And how come your keylogger requires a JRE to run?