954,164 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

keylogger extension

due to someone elses post about a keylogger, i wanted to use the program:

# get the character of a key pressed (no return key needed)
# works only in the command window and with Windows OS
# msvcrt.dll is the MS C library containing most standard C functions

from msvcrt import getch
while ord(getch()) != 27:
    z = getch()
    print z

but i was wondering how i could modify it so that it could be used to email a list of characters entered between a certain timeframe (could be described as an arg in a function) to a email specified in the program.
just in case you were wondering, lots of people have been using my computer for illegal things and i want to find out how they are getting past my blocks so i thought this would be the best way

leegeorg07
Posting Pro in Training
428 posts since Jul 2008
Reputation Points: 35
Solved Threads: 32
 

Yeah i did this just a little while ago myself. Here is the tutorial i used for it:
http://kutuma.blogspot.com/2007/08/sending-emails-via-gmail-with-python.html
That will work with gmail :)

Paul Thompson
Veteran Poster
1,119 posts since May 2008
Reputation Points: 264
Solved Threads: 183
 

cool thanks, if i find any parts that i dont understand would you be ok with explaining them?

leegeorg07
Posting Pro in Training
428 posts since Jul 2008
Reputation Points: 35
Solved Threads: 32
 

hahaha, ill should be able to help up to a point :) Im not that familiar with these libraries.

Hope i can help :)

Paul Thompson
Veteran Poster
1,119 posts since May 2008
Reputation Points: 264
Solved Threads: 183
 

As for making the keylogger, you may want to have a look at pyhook , which can capture all keyboard events and mouse clicks in Windows (so even when your program's window isn't in focus). Definitely a useful thing to have access to for your purposes.

shadwickman
Posting Pro in Training
497 posts since Jul 2007
Reputation Points: 186
Solved Threads: 77
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You