![]() |
|
Need to create a Keylogger - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Hacking (https://sinister.li/Forum-Hacking) +--- Forum: Tutorials (https://sinister.li/Forum-Tutorials) +--- Thread: Need to create a Keylogger (/Thread-Need-to-create-a-Keylogger) Pages:
1
2
|
Need to create a Keylogger - virusreloaded - 05-02-2013 Hey HC Users, I want to ask one thing that can we create a key logger using JAVA or PASCAL? if it is only possible using C or C++, can i have a source code of keylogger which starts automatically with system boot. RE: Need to create a Keylogger - Ex094 - 05-02-2013 You can get answers if you search Google but here's one for ya http://forum.codecall.net/topic/59389-how-to-create-a-keylogger-in-java/ RE: Need to create a Keylogger - virusreloaded - 05-02-2013 Thanx for your reply, Moderator ! I already knew that creating keylogger with java is not possible yet coz java does not have hardware access but asked this question to confirm. can i make it using pascal ... i don't know much about C or C++
RE: Need to create a Keylogger - 3r3bus - 05-02-2013 From what I know, its IS possible with Java. I wouldn't recommend programming a Java key-logger tho due to limitations and stability. Not sure about PASCAL. I did some research and found a thread on another forum, here is what I found: 1. implement KeyListener in a class 2. add the methods: keyTyped(KeyEvent e), keyPressed(KeyEvent e), KeyReleased(KeyEvent e), Display(KeyEvent e, String status) here is the code: Code: public class KeyLogger implements KeyListener {
/** Handle the key typed event from the text field. */
public void keyTyped(KeyEvent e) {
displayInfo(e, "KEY TYPED: ");
}
/** Handle the key-pressed event from the text field. */
public void keyPressed(KeyEvent e) {
displayInfo(e, "KEY PRESSED: ");
}
/** Handle the key-released event from the text field. */
public void keyReleased(KeyEvent e) {
display(e, "KEY RELEASED: ");
}
private void display(KeyEvent e, String keyStatus){
//You should only rely on the key char if the event
//is a key typed event.
int id = e.getID();
String keyString;
if (id == KeyEvent.KEY_TYPED) {
char c = e.getKeyChar();
keyString = "key character = '" + c + "'";
} else {
int keyCode = e.getKeyCode();
keyString = "key code = " + keyCode+ " ("+ KeyEvent.getKeyText(keyCode)+ ")";
}//end of if
System.out.println(keyString);
}//end of displayRegarding a keylogger source, you can try searching HC for "keylogger source", I'm sure you will find something. -edit @Ex094 beat me too it. RE: Need to create a Keylogger - Ex094 - 05-02-2013 (05-02-2013, 07:26 AM)3r3bu$ Wrote: From what I know, its IS possible with Java. I wouldn't recommend programming a Java key-logger tho due to limitations and stability. Not sure about PASCAL. Same reply as mine Good Job :wub:
RE: Need to create a Keylogger - Deque - 05-02-2013 (05-02-2013, 07:22 AM)virusreloaded Wrote: Thanx for your reply, Moderator ! It is possible with Java using JNI. It is just not adviseable. Why would you use a language made for portability if you need operating system specific code? For keyloggers you are better off using a more low-level language. (05-02-2013, 07:26 AM)3r3bu$ Wrote: From what I know, its IS possible with Java. I wouldn't recommend programming a Java key-logger tho due to limitations and stability. Not sure about PASCAL. That is not a keylogger. It only captures key events within your program. Click outside the window so your program looses focus and it doesn't work anymore. Stability is not a counter-argument for Java. RE: Need to create a Keylogger - virusreloaded - 05-02-2013 (05-02-2013, 07:35 AM)Deque Wrote:(05-02-2013, 07:22 AM)virusreloaded Wrote: Thanx for your reply, Moderator ! Yeah , that's what i was confused about i have worked on a java project and implemented key listener. what keylistener does is listening keys pressed within the JFrame when wi click out side and press key it'll not be able to fetch keys pressed. I am thinking of creating victim IP Monitor, the app will send mail to the attacker containing sysinfo and IP address after every 5-10 minutes. This will help us to attack victims system even if he/she is having dynamic IP. is anyone of you interested? i would love getting help from you people
RE: Need to create a Keylogger - Psycho_Coder - 05-02-2013 Well if you want a keylogger in VB.NET then I can help you with a fully functional keylogger and it can be offline or online RE: Need to create a Keylogger - virusreloaded - 05-02-2013 But i don't know Vb.NET or C/C++/C# ![]() I think i need to learn those languages too Started working on IP monitor, will let you people know if i face any problem or get it completed. Will definitely share with some of the trusted HC Users
RE: Need to create a Keylogger - Deque - 05-02-2013 (05-02-2013, 08:06 AM)virusreloaded Wrote: I am thinking of creating victim IP Monitor, the app will send mail to the attacker containing sysinfo and IP address after every 5-10 minutes. This will help us to attack victims system even if he/she is having dynamic IP. We are always willing to help if you ask for specific problems. (05-02-2013, 08:16 AM)virusreloaded Wrote: But i don't know Vb.NET or C/C++/C# Yes, keep us updated. Which language did you decide for? What implementation of Pascal are you using (Delphi, Turbo, ...)? As it seems you are able to do keyboard hooks: http://delphi.about.com/od/windowsshellapi/a/keyboard_hook.htm So you could make a simple keylogger with Pascal. Edit: Here is a JNI based keyboard and mouse hook (Java): http://kra.lc/blog/2011/07/java-global-system-hook/ You can use this as library. |