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:
4482113
)
show dumps only if not using --write
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 2 Feb 2011 11:30:29 +0000
(12:30 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 2 Feb 2011 11:30:29 +0000
(12:30 +0100)
nfc-card-dumper.pl
patch
|
blob
|
history
diff --git
a/nfc-card-dumper.pl
b/nfc-card-dumper.pl
index
d4a0e7f
..
5397f06
100755
(executable)
--- a/
nfc-card-dumper.pl
+++ b/
nfc-card-dumper.pl
@@
-118,10
+118,12
@@
if ($r->init()) {
print STDERR "$block ";
}
print STDERR "done\n";
+ } else {
+ # view dump
+ my $txt_file = $out_file;
+ $txt_file =~ s/\.mfd/.txt/ || die "can't change extension to txt";
+ system "./mifare-mad.pl $out_file > $txt_file";
+ $ENV{MAD} && system "vi $txt_file";
}
-
- # view dump
- system "./mifare-mad.pl $out_file > $out_file.txt";
- $ENV{MAD} && system "vi $out_file.txt";
}