mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
magsafe iterates 7a/7b/7c/7d for wupa
This commit is contained in:
parent
bff057d977
commit
982e669a77
3 changed files with 19 additions and 3 deletions
|
@ -2437,8 +2437,9 @@ static int GetATQA(uint8_t *resp, uint8_t *resp_par, bool use_ecp, bool use_mags
|
|||
// 0x7A - MAGESAFE WAKE UP
|
||||
uint8_t wupa[] = { ISO14443A_CMD_WUPA };
|
||||
|
||||
// if magsafe, set it outofbounds
|
||||
if (use_magsafe) {
|
||||
wupa[0] = MAGSAFE_CMD_WUPA;
|
||||
wupa[0] = MAGSAFE_CMD_WUPA_4;
|
||||
}
|
||||
|
||||
uint32_t save_iso14a_timeout = iso14a_get_timeout();
|
||||
|
@ -2455,6 +2456,15 @@ static int GetATQA(uint8_t *resp, uint8_t *resp_par, bool use_ecp, bool use_mags
|
|||
SpinDelay(ECP_DELAY);
|
||||
}
|
||||
|
||||
if (use_magsafe) {
|
||||
if (wupa[0] == MAGSAFE_CMD_WUPA_4) {
|
||||
wupa[0] = MAGSAFE_CMD_WUPA_1;
|
||||
} else {
|
||||
wupa[0]++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Broadcast for a card, WUPA (0x52) will force response from all cards in the field
|
||||
ReaderTransmitBitsPar(wupa, 7, NULL, NULL);
|
||||
// Receive the ATQA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue