display number printed on card
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 20 Jan 2011 20:30:47 +0000 (21:30 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 20 Jan 2011 20:30:47 +0000 (21:30 +0100)
mifare-mad.pl

index dd28516..e147ed1 100755 (executable)
@@ -78,6 +78,8 @@ foreach my $i ( 0 .. 15 ) {
                        printf "%-10s %2d %s\n", $types->{$type}, $len, $dump;
                        $o += $len + 1;
                }
+       } elsif ( $v == 0x0015 ) {
+               printf "Card number: %s\n", unpack('h*',substr($card,$pos + 0x04,6));
        }
 
        print "\n";