![]() |
|
Keylogger in Java - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Hacking (https://sinister.ly/Forum-Hacking) +--- Forum: Tutorials (https://sinister.ly/Forum-Tutorials) +--- Thread: Keylogger in Java (/Thread-Keylogger-in-Java) |
Keylogger in Java - The_King_Under_The_Hill - 12-04-2012 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 RE: Keylogger in Java - Deque - 12-04-2012 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. RE: Keylogger in Java - unknownAttacker - 12-04-2012 first of all, Java is painfully slow. a Java program running constantly in the background would be easily detectable RE: Keylogger in Java - Deque - 12-04-2012 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? RE: Keylogger in Java - Jacob - 12-04-2012 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. RE: Keylogger in Java - The_King_Under_The_Hill - 12-04-2012 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) RE: Keylogger in Java - unknownAttacker - 12-05-2012 (12-04-2012, 06:03 PM)Deque Wrote: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 |