Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-29-2004, 09:17 PM   #1
Registered: Oct 2003
Posts: 131

Rep: Reputation: 15
keylogger in java?

Is it possible to make a keylogger in java? I don't mean a super secret keylogger, I mean just a plain keylogger that will save typed keys to a .txt file?

-If I am in firefox typing this, and I had a java keylogger open would it be able to save these words to a .txt file? Or would I have to be in the java window typing keys for them to register?

thx in advance
Old 12-30-2004, 05:44 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,703

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I guess you can't without using native methods due to the sandbox protection environment.
Old 01-08-2005, 05:27 PM   #3
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
you would end up writing about 75% of the program in a native language, because Java is not allowed to see what is going on outside of its focus... IE if an AWT window is not selected, the Java process will not receive notification of the keystrokes


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
keylogger? |2ainman Linux - Security 4 08-21-2013 03:48 AM
*working* kernel based keylogger for honeypot? TotalDefiance Linux - Security 4 11-05-2005 11:25 AM
Summer Project: Create keylogger MDBlueIce Programming 7 07-20-2005 08:08 AM
Keylogger / session monitoring in real time? houler Linux - Security 2 04-06-2005 09:21 PM
help with lkl keylogger br0k3n Linux - Software 0 07-22-2004 04:55 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration