in reply to Re: perl keylogger on linux
in thread perl keylogger on linux

Okay, this thread has inspired me to start a new project.

The project will be a keylogger written entirely in Perl. It needs to run on Linux and read keystrokes entered on the command line and in X. I've done searches both here and on CPAN for 'keylogger' and 'term' but didn't find anything relevant.

Any suggestions as to how I'd get started on this project? Thanks in advance for the replies :).

Replies are listed 'Best First'.
Re^3: Perl Keylogger on Linux
by Anonymous Monk on May 23, 2008 at 18:14 UTC
    if u want to write a simple key logger in windows this would be how to do it
    use feature ':5.10'; while(10) { $input = <>; #this creats an infinite loop last if $input eq "exit/n"; #exit loop when user presses exit then ent +er open(FILE, ">>log.txt"); print FILE $input; } close FILE;

      I have to admit, when I first saw this thread, I was thinking script kiddie. This response adds a nice touch of humor to this thread as a very naive approach.

      Thanks for the humor :)