Merge pull request #539 from rstular/patch-2

Updated function declaration in utils/nfc-mfultralight.c
This commit is contained in:
Adam Laurie 2020-04-04 18:25:39 +01:00 committed by GitHub
commit 7908d405dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,10 +291,8 @@ unlock_card(void)
return true; return true;
} }
static bool check_magic() { static bool check_magic(void)
// Firstly try to directly read and re-write the first three pages {
// if this fail try to unlock with chinese magic backdoor
bool directWrite = true; bool directWrite = true;
// Try to read pages 0, 1, 2 // Try to read pages 0, 1, 2
uint8_t original_b0[12]; uint8_t original_b0[12];