mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
improve hf 14a info
(#457)
* added validate_prng_nonce from iceman1001 fork * added DetectClassicPrng from iceman1001 fork
This commit is contained in:
parent
83df98d691
commit
fe6bf3c58c
4 changed files with 85 additions and 1 deletions
|
@ -244,8 +244,10 @@ int CmdHF14AInfo(const char *Cmd)
|
|||
PrintAndLog("ATQA : %02x %02x", card.atqa[1], card.atqa[0]);
|
||||
PrintAndLog(" SAK : %02x [%d]", card.sak, resp.arg[0]);
|
||||
|
||||
bool isMifareClassic = true;
|
||||
switch (card.sak) {
|
||||
case 0x00:
|
||||
isMifareClassic = false;
|
||||
|
||||
//***************************************test****************
|
||||
// disconnect
|
||||
|
@ -480,6 +482,19 @@ int CmdHF14AInfo(const char *Cmd)
|
|||
// try to see if card responses to "chinese magic backdoor" commands.
|
||||
mfCIdentify();
|
||||
|
||||
if (isMifareClassic) {
|
||||
switch(DetectClassicPrng()) {
|
||||
case 0:
|
||||
PrintAndLog("Prng detection: HARDEND (hardnested)");
|
||||
break;
|
||||
case 1:
|
||||
PrintAndLog("Prng detection: WEAK");
|
||||
break;
|
||||
default:
|
||||
PrintAndLog("Prng detection error.");
|
||||
}
|
||||
}
|
||||
|
||||
return select_status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue