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:
0686bc5
)
ask before running mfoc
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 2 Feb 2011 11:08:09 +0000
(12:08 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 2 Feb 2011 11:08:09 +0000
(12:08 +0100)
nfc-card-dumper.pl
patch
|
blob
|
history
diff --git
a/nfc-card-dumper.pl
b/nfc-card-dumper.pl
index
33b17cd
..
ffdecc9
100755
(executable)
--- a/
nfc-card-dumper.pl
+++ b/
nfc-card-dumper.pl
@@
-54,6
+54,10
@@
if ($r->init()) {
# disconnect from reader so we can run mfoc
RFID::Libnfc::nfc_disconnect($r->{_pdi});
+ print "Dump this card with mfoc? [y] ";
+ my $yes = <STDIN>; chomp $yes;
+ exit unless $yes =~ m/y/i || $yes eq '';
+
my $file = "cards/$uid.keys";
unlink $file;
warn "# finding keys for card $uid with: mfoc -O $file\n";