Visit the LQ Articles and Editorials section
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, 10: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, 06:44 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,571

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I guess you can't without using native methods due to the sandbox protection environment.
Old 01-08-2005, 06: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 04:48 AM
*working* kernel based keylogger for honeypot? TotalDefiance Linux - Security 4 11-05-2005 12:25 PM
Summer Project: Create keylogger MDBlueIce Programming 7 07-20-2005 09:08 AM
Keylogger / session monitoring in real time? houler Linux - Security 2 04-06-2005 10:21 PM
help with lkl keylogger br0k3n Linux - Software 0 07-22-2004 05:55 PM

All times are GMT -5. The time now is 07:00 AM.

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