Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: Perl Keylogger on Linux

by cjf (Parson)
on Jul 01, 2002 at 16:05 UTC ( #178593=note: print w/replies, xml ) Need Help??

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 :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://178593]
[atcroft]: Lady_Aleena: My early code was pretty horrible... but somewhere early on I learned not to take criticism of my code personally... which was probably a good thing, considering the kind of code I wrote at the time. :\
[Lady_Aleena]: I am hungry, so I'm going to go make something to eat. I hope you figure it out atcroft. Have a nice night!
[atcroft]: I have one script that I have started re-writing several times over the years, and have yet to get it working in a cleaner/better form. (It is some smelly code-I did not even know about hashes at the time I wrote it.)
[atcroft]: Enjoy, Lady_Aleena!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-05-27 05:32 GMT
Find Nodes?
    Voting Booth?