Help for this page

Select Code to Download


  1. or download this
        foreach my $key (keys %$hashRef){
        if ($key =~ /EventID/) {
            my $id = ($hashRef->{$key} & 0xffff);
                print $key . "\t" . "\"$id\"" . "\n";
        }
    
  2. or download this
    elsif ($key =~ /User/){
        my $sid = unpack("H" . 2 * length(${$hashRef}{$key}), ${$hashRef}{
    +$key});
        my $user = ($hashRef->{$key} & 0xffff);
        print "User SID: " . "\t" . "\"$sid\" " . "\n";
    }