Merge pull request #1574 from mwalker33/mifare-debug-bug

Update mifareutil.c
This commit is contained in:
Iceman 2022-01-31 07:54:14 +01:00 committed by GitHub
commit f6ddc56111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN
// some statistic // some statistic
if (!ntptr && (g_dbglevel >= DBG_EXTENDED)) if (!ntptr && (g_dbglevel >= DBG_EXTENDED))
Dbprintf("auth uid: %08x | nr: %08x | nt: %08x", uid, nr, nt); Dbprintf("auth uid: %08x | nr: %02x%02x%02x%02x | nt: %08x", uid, nr[0], nr[1], nr[2], nr[3], nt);
// save Nt // save Nt
if (ntptr) if (ntptr)