From 16053e41f66559a3ae0cdd4991047b2beb5152fb Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Fri, 13 Nov 2026 13:52:04 +0800 Subject: [PATCH] Update sam_picopass.c Ported fix from https://github.com/RfidResearchGroup/proxmark3/pull/3824 --- armsrc/sam_picopass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/sam_picopass.c b/armsrc/sam_picopass.c index 598b2c75f..4b0d0b579 100644 --- a/armsrc/sam_picopass.c +++ b/armsrc/sam_picopass.c @@ -133,7 +133,7 @@ static int sam_send_request_iso15(const uint8_t *const request, const uint8_t re // #2(FF FF FF FF) #1(C9 FD FF FF) 3A 47 memcpy(nfc_rx_buf + 0, nfc_tx_buf + 6, 4); - memcpy(nfc_rx_buf + 4, nfc_tx_buf + 0, 4); + memcpy(nfc_rx_buf + 4, nfc_tx_buf + 2, 4); AddCrc(nfc_rx_buf, 8); nfc_rx_len = 10; @@ -375,7 +375,7 @@ static int sam_send_request_emulated(const uint8_t *const request, const uint8_t if (is_cmd_update && prevent_epurse_update && nfc_tx_buf[0] == 0x87 && block == 0x02) { // Fake epurse update: swap the two halves of the new epurse value memcpy(nfc_rx_buf + 0, nfc_tx_buf + 6, 4); - memcpy(nfc_rx_buf + 4, nfc_tx_buf + 0, 4); + memcpy(nfc_rx_buf + 4, nfc_tx_buf + 2, 4); AddCrc(nfc_rx_buf, 8); nfc_rx_len = 10; } else {