projects
/
perl-Mifare-MAD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3efa4c1
)
display number printed on card
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 Jan 2011 20:30:47 +0000
(21:30 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 Jan 2011 20:30:47 +0000
(21:30 +0100)
mifare-mad.pl
patch
|
blob
|
history
diff --git
a/mifare-mad.pl
b/mifare-mad.pl
index
dd28516
..
e147ed1
100755
(executable)
--- a/
mifare-mad.pl
+++ b/
mifare-mad.pl
@@
-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";