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
(parent:
bffc5fe
)
show all blocks for SWAP
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 23 Jan 2011 16:52:13 +0000
(17:52 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 23 Jan 2011 16:52:13 +0000
(17:52 +0100)
mifare-mad.pl
patch
|
blob
|
history
diff --git
a/mifare-mad.pl
b/mifare-mad.pl
index
5319f2c
..
c52eb65
100755
(executable)
--- a/
mifare-mad.pl
+++ b/
mifare-mad.pl
@@
-157,7
+157,7
@@
foreach my $sector ( 0 .. 39 ) {
my $hex = unpack('H*',$block);
$hex =~ s/(....)/$1 /g;
- if ( $ENV{SWAP}
&& $j < $blocks - 1
) {
+ if ( $ENV{SWAP} ) {
my $hex_sw = unpack('h*',$block);
$hex_sw =~ s/(....)/$1 /g;
$hex .= " | $hex_sw";