Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Keylogger in Java filter_list
Author
Message
Keylogger in Java #1
Hey, does anybody have/know where I can get a decent source for a keylogger in Java? All the links on google provide half-baked solutions, or would it be better to look into a lower-level programming language like C++?

Thanks

Reply

RE: Keylogger in Java #2
You should look for another language. A keylogger needs OS specific functions. Java is not good at this. You would have to use the JNI (Java Native Interface) in order to achieve this and this is not really a good solution. It is cumbersome and it perishs one of Javas biggest advantages--portability. This is why you won't find many keyloggers in Java.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Keylogger in Java #3
first of all, Java is painfully slow. a Java program running constantly in the background would be easily detectable

Reply

RE: Keylogger in Java #4
Code:
first of all, Java is painfully slow.

That was true before they used JIT, but that has been a couple years ago.
Also--keylogging is not a task that needs much speed, is it?
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Keylogger in Java #5
A keylogger is not possible in pure java because of the need for low level hooks to the hardware, which completely defeats the purpose of Java being a write once run anywhere portable language. It is possible if you use JNI (Java Native interface), but it would then be mainly coded in C/C++ and again defeats the purpose of Java's portability.

Java is (i guess you could say) "stuck" in the virtual machine which it's running in. Therefore you can make a key listener, which will record the keys typed when the window corresponding to that specific environment is in focus and active.

IMO though, if you could write a logger in pure java it would be nearly impossible to detect because of the way JARs are formatted. AVs can't scan them properly.

Reply

RE: Keylogger in Java #6
Ahh, I figured that Java wouldnt be up to the task, since it's quite a high level language, i'll look into a lower level language (like you say C++ would be ideal)

Reply

RE: Keylogger in Java #7
(12-04-2012, 06:03 PM)Deque Wrote:
Code:
first of all, Java is painfully slow.

That was true before they used JIT, but that has been a couple years ago.
Also--keylogging is not a task that needs much speed, is it?
running Java program constantly still slows you down noticeably, especially on older computers and/or computers without virtualization


Quote:Ahh, I figured that Java wouldnt be up to the task, since it's quite a high level language, i'll look into a lower level language (like you say C++ would be ideal)
you can use high level languages, just make sure they're efficient and not virtualized. but C++ is a good idea too

Reply







Users browsing this thread: 1 Guest(s)