keylogger in Python

François Pinard pinard at iro.umontreal.ca
Sun Jul 31 12:04:24 EDT 2005


[Michael Hoffman]

> You think this is a suitable beginner project?

One surely learns a lot! :-)

> And for that matter, it doesn't sound like you were doing keylogging, as 
> it is usually understood to mean globally logging keypresses, no matter 
> the application being presented to the user.

One possible avenue to keylogging might be to start a shell, over the
keyboard processing layer, presuming the shell do only simple things
over its standard input.

But most likely, the shell is playing termios trickery and such things.
So one might have to use pty's to get a working solution.  Agreed, this
is not all evident, and probably too much of a challenge for a beginner.

-- 
François Pinard   http://pinard.progiciels-bpi.ca



More information about the Python-list mailing list