ADD: 'hf 14a read' - detection if found Mifare Classic tag has a weak or hardend PRNG. Thanks to @doegox for implementing it in nfc-tools/mfoc Its a beauty :)

This commit is contained in:
iceman1001 2017-06-26 21:45:22 +02:00
commit 4d18909596
5 changed files with 91 additions and 36 deletions

View file

@ -25,6 +25,7 @@
#include "nonce2key/crapto1.h"
#include "iso14443crc.h"
#include "protocols.h"
#include "mifare.h"
#define NESTED_SECTOR_RETRY 10
@ -84,4 +85,6 @@ int isBlockTrailer(int blockN);
int loadTraceCard(uint8_t *tuid, uint8_t uidlen);
int saveTraceCard(void);
int tryDecryptWord(uint32_t nt, uint32_t ar_enc, uint32_t at_enc, uint8_t *data, int len);
extern bool detect_classic_prng();
#endif