Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perl keylogger on linux

by Trimbach (Curate)
on Jul 01, 2002 at 15:53 UTC ( #178590=note: print w/replies, xml ) Need Help??


in reply to perl keylogger on linux

Seeing as how you're the one taking the Systems Programming Course it seems to me that you should be the one doing your homework. We're awfully helpful to people around here, but you'll find an enormous reluctance to do your work for you, especially when (it appears) you've done exactly zero of the work so far.

Try to solve the problem yourself. If you have a (very specific) question about something, please feel free to post it.

Gary Blackburn
Trained Killer

Replies are listed 'Best First'.
Re: Re: perl keylogger on linux
by DamnDirtyApe (Curate) on Jul 01, 2002 at 18:14 UTC

    While it's true that no one here will do someone's homework for them, I don't think this particular post deserves to be brushed off so hastily.

    SMA said, "If you can show me the right way to do it ,or give any idea, i think i could write it pretty fast." This doesn't sound to me like someone asking to have their project written for them. I see nothing unreasonable about someone asking for guidance with their homework. Telling someone to RTFM is often appropriate when people are asking about easily-found technical details, but manuals rarely help when you don't have a starting point. I see nothing wrong with telling folks to go look at module X, or read merlyn's article on Y, even if it is for someone's homework.

    Just my $0.02.


    _______________
    D a m n D i r t y A p e
    Home Node | Email
      I don't buy it. CPAN is not exactly a secret, especially to someone who has, according to his own admission "used Perl for years." If you're in a class part of your education isn't just writing, it's researching which means putting some level of personal effort into finding out where the answer may be without cutting to the chase and asking those that already know. It's certainly convenient for the student, though ultimately not as educational as doing the grunt work yourself.

      It's kinda amusing seeing the reputation on my original node swing wildly up and down... I deliberately posted first so that I could say in a nice way what lots of other Monks would have said much less politely. The poster is new and doesn't need to be abused... I was trying to save him some abuse and I get beat up on instead.

      Ah well... to each his own. :-D

      Gary Blackburn
      Trained Killer

Re: Re: Perl Keylogger on Linux
by cjf (Parson) on Jul 01, 2002 at 16:05 UTC

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

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

        --MidLifeXis

Re: Re: perl keylogger on linux
by SMA (Initiate) on Jul 01, 2002 at 16:17 UTC
    Sorry but I didn't want anyone do it for me. I just needed a few ideas on "how could it be done on Linux with Perl" I have posted this question because I'm not an experienced Linux user, but I have been using Perl for CGI for years. All i needed was some advice like "You can try .... for X , and .... for console". Thanks again :-)
      I guess that Term::Readkey would be where you want to look. But im really not that sure.

      Yves / DeMerphq
      ---
      Writing a good benchmark isnt as easy as it might look.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://178590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2021-12-09 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?