show all blocks for SWAP
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 23 Jan 2011 16:52:13 +0000 (17:52 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 23 Jan 2011 16:52:13 +0000 (17:52 +0100)
mifare-mad.pl

index 5319f2c..c52eb65 100755 (executable)
@@ -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";