mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
hf mf sim: add nested reader attack (needs data & rf08s nonces)
This commit is contained in:
+8
-5
@@ -167,6 +167,13 @@ typedef enum {
|
||||
//-----------------------------------------------------------------------------
|
||||
// "hf 14a sim -x", "hf mf sim -x" attacks
|
||||
//-----------------------------------------------------------------------------
|
||||
typedef enum {
|
||||
EMPTY,
|
||||
FIRST,
|
||||
SECOND,
|
||||
NESTED
|
||||
} nonce_state;
|
||||
|
||||
typedef struct {
|
||||
uint32_t cuid;
|
||||
uint32_t nonce;
|
||||
@@ -178,11 +185,7 @@ typedef struct {
|
||||
uint32_t nr2;
|
||||
uint8_t sector;
|
||||
uint8_t keytype;
|
||||
enum {
|
||||
EMPTY,
|
||||
FIRST,
|
||||
SECOND,
|
||||
} state;
|
||||
uint8_t state;
|
||||
} PACKED nonces_t;
|
||||
|
||||
#endif // _MIFARE_H_
|
||||
|
||||
@@ -780,6 +780,7 @@ typedef struct {
|
||||
#define FLAG_FORCED_SAK 0x1000
|
||||
#define FLAG_CVE21_0430 0x2000
|
||||
#define FLAG_RATS_IN_DATA 0x4000
|
||||
#define FLAG_NESTED_AUTH_ATTACK 0x8000
|
||||
|
||||
|
||||
#define MODE_SIM_CSN 0
|
||||
|
||||
Reference in New Issue
Block a user