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:

In reply to Re: perl keylogger on linux by hacker
in thread perl keylogger on linux by SMA

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.