mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 10:36:58 -07:00
HitagS Improvements (#721)
* support of HITAG S standard communication mode * fixed wrong AC (Anti Collision) decoding * support of block read mode * fixed wrong uid send when using simulation * support of communication mode parameter (client is backward compatible) * support of start-page parameter (important for some weird tags) (client is backward compatible) * also expect pages if tag memory size in con0 is 11 (we got some tags) * corrected hitagS reader cmd help
This commit is contained in:
parent
994f21fe01
commit
7b6e320533
8 changed files with 1074 additions and 733 deletions
|
@ -16,14 +16,14 @@
|
|||
#include "hitag2.h"
|
||||
|
||||
typedef enum PROTO_STATE {READY=0,INIT,AUTHENTICATE,SELECTED,QUIET,TTF,FAIL} PSTATE; //protocol-state
|
||||
typedef enum TAG_STATE {NO_OP=0,READING_PAGE,WRITING_PAGE_ACK,WRITING_PAGE_DATA,WRITING_BLOCK_DATA} TSATE; //tag-state
|
||||
typedef enum TAG_STATE {NO_OP=0,READING_PAGE,READING_BLOCK,WRITING_PAGE_ACK,WRITING_PAGE_DATA,WRITING_BLOCK_DATA} TSATE; //tag-state
|
||||
typedef enum SOF_TYPE {STANDARD=0,ADVANCED,FAST_ADVANCED,ONE,NO_BITS} stype; //number of start-of-frame bits
|
||||
|
||||
struct hitagS_tag {
|
||||
PSTATE pstate; //protocol-state
|
||||
TSATE tstate; //tag-state
|
||||
uint32_t uid;
|
||||
uint32_t pages[16][4];
|
||||
uint8_t pages[64][4];
|
||||
uint64_t key;
|
||||
byte_t pwdl0,pwdl1,pwdh0;
|
||||
//con0
|
||||
|
|
|
@ -137,6 +137,7 @@ typedef struct{
|
|||
#define CMD_SIMULATE_HITAG_S 0x0368
|
||||
#define CMD_TEST_HITAGS_TRACES 0x0367
|
||||
#define CMD_READ_HITAG_S 0x0373
|
||||
#define CMD_READ_HITAG_S_BLK 0x0374
|
||||
#define CMD_WR_HITAG_S 0x0375
|
||||
#define CMD_EMU_HITAG_S 0x0376
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue