mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CID 398740, init a struct
This commit is contained in:
parent
f16f6b5122
commit
0f96bcff05
1 changed files with 3 additions and 2 deletions
|
@ -664,14 +664,15 @@ static int CmdHFiClassSniff(const char *Cmd) {
|
|||
PrintAndLogEx(INFO, "Sniff with jam of iCLASS e-purse updates...");
|
||||
}
|
||||
|
||||
const uint8_t update_epurse_sequence[2] = {0x87, 0x02};
|
||||
|
||||
struct {
|
||||
uint8_t jam_search_len;
|
||||
uint8_t jam_search_string[2];
|
||||
} PACKED payload;
|
||||
|
||||
memset(&payload, 0, sizeof(payload));
|
||||
|
||||
if (jam_epurse_update) {
|
||||
const uint8_t update_epurse_sequence[2] = {0x87, 0x02};
|
||||
payload.jam_search_len = sizeof(update_epurse_sequence);
|
||||
memcpy(payload.jam_search_string, update_epurse_sequence, sizeof(payload.jam_search_string));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue