Keylogger


SUBMITTED BY: Nutty1337

DATE: July 20, 2017, 1:36 p.m.

FORMAT: VB.net

SIZE: 614 Bytes

HITS: 512

  1. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal sKey As Int32) As Int16
  2. Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  3. Timer1.Interval = 1
  4. End Sub
  5. Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
  6. For i = 0 To 255
  7. Dim result = GetAsyncKeyState(i)
  8. If result = -32767 Then
  9. 'ligne ci dessous à adapter selon les touches voulues.
  10. If i = Keys.A And My.Computer.Keyboard.CtrlKeyDown Then
  11. 'action a exécuter.
  12. End If
  13. End If
  14. Next i
  15. End Sub

comments powered by Disqus