Making a Java Key Logger

Reply

Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Making a Java Image Enlarger

 
0
  #1
Aug 3rd, 2005
Hi Everybody,

Is there a way to have a picture of the 3 or 4 sq. pixels you're mouse is hovering over appear in the bottom of the screen?
Thanx.
Last edited by C++; Aug 3rd, 2005 at 3:01 am. Reason: Wrong Question
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 58
Reputation: JeffHeaton is an unknown quantity at this point 
Solved Threads: 0
JeffHeaton's Avatar
JeffHeaton JeffHeaton is offline Offline
Junior Poster in Training

Re: Making a Java Key Logger

 
0
  #2
Aug 3rd, 2005
I don't think you can do that in Java. You can do it in C++ easy enough by installing an OS hook. Used generally by macro programs and spyware.

But I don't think Java has this kind of access to WIN32. Maybe through JNI?

Jeff Heaton
http://www.heatonresearch.com
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Making a Java Key Logger

 
0
  #3
Aug 3rd, 2005
You can get the mouse coordinates of the mouse.
That will give you the location on screen.
From that you could get the Component the mouse is over.
From that you can retrieve a Graphics object which can draw that component.
From that you can retrieve an offset Graphics object which can draw that component somewhere else (if I read the API docs correctly).

What I don't know is whether any of that will do you much good
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 2
Reputation: sl1pstr3am is an unknown quantity at this point 
Solved Threads: 0
sl1pstr3am sl1pstr3am is offline Offline
Newbie Poster

Re: Making a Java Key Logger

 
0
  #4
Aug 30th, 2009
if a java keylogger is unavailable therefore the ability to simply count the number of keystrokes must be the same.

does anybody know of a simple keylogger that counts the number of mouseevents and keystrokes? or failing this one that outputs to a text file which can then be read later on?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Making a Java Key Logger

 
0
  #5
Aug 30th, 2009
you could try to write one yourself.
a bit like:
[Code=Java]
if ( mousePressed() ){
while(mousePressed() ){}
System.out.println("mouse is pressed");
}
[Code]
logic

also, for a next time, there's no need to revive threads that have been inactive for over 4 years, you are allowed to create your own.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 2
Reputation: sl1pstr3am is an unknown quantity at this point 
Solved Threads: 0
sl1pstr3am sl1pstr3am is offline Offline
Newbie Poster

Re: Making a Java Key Logger

 
0
  #6
Aug 30th, 2009
thanks luke, ill keep that in mind...just wondering if it will work like the c++ logger mentioned abov ...ie at operating system level its a fairly important feature, but with file output would be easy to a: buffer the keystrokes and can then process in the background, and b: save embedding c code in a pre written java program.

ill look in the forums n see if theres a nire recnt thread...thanks again, and for the advice to a noob.

Pete
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC