ADD: @micolous random nonce, adjusted to fit in. Icemanfork only uses Moebius attack, so no need for an extra parameter in client.

ref: https://github.com/Proxmark/proxmark3/pull/209
This commit is contained in:
iceman1001 2017-01-26 14:21:51 +01:00
commit bf5d7992ce
8 changed files with 90 additions and 28 deletions

View file

@ -66,14 +66,14 @@ typedef enum ISO14B_COMMAND {
//-----------------------------------------------------------------------------
typedef struct {
uint32_t cuid;
uint8_t sector;
uint8_t keytype;
uint32_t nonce;
uint32_t ar;
uint32_t nr;
uint32_t nonce2;
uint32_t ar2;
uint32_t nr2;
uint8_t sector;
uint8_t keytype;
} nonces_t;
#endif // _MIFARE_H_

View file

@ -239,6 +239,7 @@ typedef struct{
#define FLAG_10B_UID_IN_DATA 0x08
#define FLAG_UID_IN_EMUL 0x10
#define FLAG_NR_AR_ATTACK 0x20
//#define FLAG_RANDOM_NONCE 0x40
//Iclass reader flags
#define FLAG_ICLASS_READER_ONLY_ONCE 0x01