mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
this commit fixes #2244 #2246 #1596 #2101. Its kind of a big refactoring and I most likely broke something. With that said. Now: HF 15 commands now uses NG packets, hf 15 raw support -k keepfield on and -s select, hf 15 dump/rdbl/rdmulti should handle blocksizes of 4 or 8, the error messages are unified and error handling the same. Some understanding how add_option impacts response message from card. A more clear separation between PM3 flags and ISO15693 protocol flags.
This commit is contained in:
parent
224da75e7a
commit
8d0b41a911
11 changed files with 824 additions and 544 deletions
|
@ -815,14 +815,21 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
bool off;
|
||||
} PACKED;
|
||||
struct p *payload = (struct p *)packet->data.asBytes;
|
||||
if (payload->on && payload->off)
|
||||
if (payload->on && payload->off) {
|
||||
reply_ng(CMD_SET_TEAROFF, PM3_EINVARG, NULL, 0);
|
||||
if (payload->on)
|
||||
}
|
||||
|
||||
if (payload->on) {
|
||||
g_tearoff_enabled = true;
|
||||
if (payload->off)
|
||||
}
|
||||
|
||||
if (payload->off) {
|
||||
g_tearoff_enabled = false;
|
||||
if (payload->delay_us > 0)
|
||||
}
|
||||
|
||||
if (payload->delay_us > 0) {
|
||||
g_tearoff_delay_us = payload->delay_us;
|
||||
}
|
||||
reply_ng(CMD_SET_TEAROFF, PM3_SUCCESS, NULL, 0);
|
||||
break;
|
||||
}
|
||||
|
@ -1269,11 +1276,16 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
break;
|
||||
}
|
||||
case CMD_HF_ISO15693_COMMAND: {
|
||||
DirectTag15693Command(packet->oldarg[0], packet->oldarg[1], packet->oldarg[2], packet->data.asBytes);
|
||||
iso15_raw_cmd_t *payload = (iso15_raw_cmd_t *)packet->data.asBytes;
|
||||
SendRawCommand15693(payload);
|
||||
break;
|
||||
}
|
||||
case CMD_HF_ISO15693_FINDAFI: {
|
||||
BruteforceIso15693Afi(packet->oldarg[0]);
|
||||
struct p {
|
||||
uint32_t flags;
|
||||
} PACKED;
|
||||
struct p *payload = (struct p *)packet->data.asBytes;
|
||||
BruteforceIso15693Afi(payload->flags);
|
||||
break;
|
||||
}
|
||||
case CMD_HF_ISO15693_READER: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue