Add --shallow option to hf iclass reader commands to do shallow (ASK) reader modulation instead of OOK.

This commit is contained in:
nvx committed 2023-01-04 23:59:03 +10:00
1 parent 53808f2c7f
commit 4180635218
10 files changed
+117 -63

No files matched your search

+3
View File
@@ -32,6 +32,7 @@
//#define FLAG_ICLASS_READER_ONLY_ONCE 0x04
#define FLAG_ICLASS_READER_CREDITKEY 0x08
#define FLAG_ICLASS_READER_AIA 0x10
#define FLAG_ICLASS_READER_SHALLOW_MOD 0x20
// iCLASS reader status flags
#define FLAG_ICLASS_NULL 0x00
@@ -60,6 +61,7 @@ typedef struct {
bool use_replay;
bool send_reply;
bool do_auth;
bool shallow_mod;
uint8_t blockno;
} PACKED iclass_auth_req_t;
@@ -103,6 +105,7 @@ typedef struct iclass_premac {
typedef struct {
bool use_credit_key;
bool shallow_mod;
uint8_t count;
iclass_premac_t items[];
} PACKED iclass_chk_t;