Merge remote-tracking branch 'mjesec/master'
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 22 Jan 2014 16:22:19 +0000 (17:22 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 22 Jan 2014 16:22:19 +0000 (17:22 +0100)
README
nfc-card-dumper.pl

diff --git a/README b/README
index d384b62..41a0cfc 100644 (file)
--- a/README
+++ b/README
@@ -7,6 +7,8 @@ http://blog.rot13.org/2011/01/mifare_application_directory_-_what_is_stored_on_r
 If this card is Mifare Classic, and you have supported reader which can run
 nfc-tools and can run Mifare Classic Offline Cracker you can now find out!
 
+This script does NOT crack your card, that Mifare Classic Offline Cracker job!
+
 
 Following tools are included in this repository:
 
index afc3140..37bee84 100755 (executable)
@@ -84,7 +84,7 @@ if ($r->init()) {
        my $out_file = write_card_dump $tag => $card;
 
        if ( $opt->write ) {
-               read_file $opt->write;
+               $card = read_file $opt->write;
                foreach my $block ( 0 .. $tag->blocks ) {
                        my $offset = 0x10 * $block;
                        my $data = substr($card,$offset,0x10);