Results 1 to 1 of 1
When the user press a key in desktop or console or a browser or anywhere. I want to get the key that is pressed by user. (like a keylogger) I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-10-2010 #1
- Join Date
- Jan 2010
How can I get the key that is pressed by user in a module in kernel 2.6.x ?
I found something about that
I can make my intterrup handler (IRQ) but if I change the original interrupt handler, the computer must be rebooted or I must made the interrupt handler, the original handler from my handler and I don't know whether that is can be done in kernel 2.6.x
I can use tty device but how ?(I don't know exactly what tty is I just found searching keylogger for linux.
and there is a function scancode = inb(0x60);
maybe that can bu used.
maybe with systemCalls but in kernel 2.6.x the system Call Table I think it can't be changed.
I want to add functions to some keys. (If the user press 'S' I will write the system time to the logs , (If the user press 'P I want to write process list to the logs)
(Module Programming(possibly it will be a char device driver) with C)