Jump to content

How to create a keylogger in java

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
anandsaab

anandsaab

    Newbie

  • Members
  • Pip
  • 1 posts
I am researching on keyloggers and as a part of my research I would like to know if its possible to implement keyloggers in java.. TIA

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts

anandsaab said:

I am researching on keyloggers and as a part of my research I would like to know if its possible to implement keyloggers in java.. TIA
Short answer: No
Long answer: No, you can't :)

#3
yamman13

yamman13

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
I don't see why not

#4
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Well, you can make a keylistener. That's no problem. But you must assign the keylistener to something. Like a frame, or a textbox. What a keylogger does, is listen to a key pressed pretty much anywhere, and that's something you can't achieve with Java.
You'll need VB, c#, c, c++, propably a bunch others, to achieve this.

Java is "stuck" inside its little virtual machine where it's running in. It can't look oustide it to see what's happening. (which is good for security reasons)

#5
yamman13

yamman13

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
I thought the virtual machine was just an interpreter? I'm not saying your wrong, just I didn't know that.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Not with pure Java: it violates the purpose of Java to NOT allow direct access to hardware (needed for keyloggers). JNI might make it possible, but then you're dealing with C/C++ code.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog