mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
hf mf sim: add nested reader attack (needs data & rf08s nonces)
This commit is contained in:
parent
00c84b9c22
commit
079689628b
9 changed files with 166 additions and 38 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue