fix: hf mf sen init wrong 4 bytes of UID for authentication

This commit is contained in:
nffq committed 2026-08-21 00:04:34 +09:00
1 parent 3cbdfe3c1e
commit b6929d9108
1 file changed
+1 -1
+1 -1
View File
@@ -2893,7 +2893,7 @@ int HFMFSENRecover(bool keep_nonces, bool no_oob, bool reader_mode, bool offline
active_key = active_key_bytes;
}
uint32_t uid = bytes_to_num(card.uid, 4);
uint32_t uid = bytes_to_num(card.uid + card.uidlen - 4, 4);
uint32_t nonce_count = FM11RF08S_SECTORS * 2;
char activity[80];
snprintf(activity, sizeof(activity), "Loaded card UID %08X using %s key %s", uid,