mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 04:50:12 -07:00
autopwn: fix card detection
This commit is contained in:
parent
8228b66cb6
commit
710c49f763
1 changed files with 6 additions and 2 deletions
|
@ -1660,7 +1660,7 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
||||||
// Settings
|
// Settings
|
||||||
bool slow = false;
|
bool slow = false;
|
||||||
bool legacy_mfchk = false;
|
bool legacy_mfchk = false;
|
||||||
bool prng_type = false;
|
int prng_type = 0;
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
bool has_filename = false;
|
bool has_filename = false;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
|
@ -1776,8 +1776,12 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// card prng type (weak=true / hard=false)
|
// card prng type (weak=1 / hard=0 / select/card comm error fail = -vaule)
|
||||||
prng_type = detect_classic_prng();
|
prng_type = detect_classic_prng();
|
||||||
|
if (prng_type < 0){
|
||||||
|
PrintAndLogEx(FAILED, "\nNo tag detected or other tag communication error");
|
||||||
|
goto noValidKeyFound;
|
||||||
|
}
|
||||||
|
|
||||||
// print parameters
|
// print parameters
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue