in reply to perl keylogger on linux

Since this is for your System Programming course, I won't give you the exact answer here, but I can definately give you enough to help
"..teach a man to fish.."

cjf, myself, and others discussed this briefly on the CB soon after it was posted, and I gave up a few ideas on how to solve this. First a few key questions have to be asked:

  1. Will you have access to create character devices on the target machine?
  2. Will you be able to rebuild a kernel or reboot the kernel on the target machine?
  3. Can you run a daemon on the user machine, global to all processes?
  4. Are you limited to using pure perl? Or can you use C also?
With this, you could begin to construct several plans of attack: Some other modules you may be able to use at your disposal are:

Replies are listed 'Best First'.
Re: Re: perl keylogger on linux
by Anonymous Monk on Jul 02, 2002 at 11:17 UTC
    Hi,
    - I will have root access to target computers. My project aims to watch a large computer lab during exam hours only, since exams are made by a web interface, grabbing keys in X windows is more important.
    - I have already written a kernel module in C and am able to grab all keys regardless of console or X. But this assignment must be done in pure Perl.
    Also I have tried TK yesterday, but it only grabs key events from a focused window, global grabbing blocks all inputs so it doesn't suit my needs. Today I'll be trying Qt and X Event Interface. I hope listening X events will solve my problem.
    Thank you very much for help :-)