DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   keylogger extension (http://www.daniweb.com/forums/thread201616.html)

leegeorg07 Jul 4th, 2009 6:06 am
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

Paul Thompson Jul 4th, 2009 6:36 am
Re: keylogger extension
 
Yeah i did this just a little while ago myself. Here is the tutorial i used for it:
http://kutuma.blogspot.com/2007/08/s...th-python.html
That will work with gmail :)

leegeorg07 Jul 4th, 2009 7:23 am
Re: keylogger extension
 
cool thanks, if i find any parts that i dont understand would you be ok with explaining them?

Paul Thompson Jul 4th, 2009 7:35 am
Re: keylogger extension
 
hahaha, ill should be able to help up to a point :) Im not that familiar with these libraries.

Hope i can help :)

shadwickman Jul 4th, 2009 7:46 pm
Re: keylogger extension
 
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.


All times are GMT -4. The time now is 7:55 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC