mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 13:03:13 +00:00
correct check if non secure mode is enabled
This commit is contained in:
1 parent
ba5812a775
commit
55db4dc6f2
1 file changed
+1
-1
@@ -3916,7 +3916,7 @@ static int CmdHFiClass_BlackTears(const char *Cmd) {
|
||||
#define TEAR_PERSO 0xAC
|
||||
|
||||
#define TEAR_IS_PERSO_SET(x) (((x) & 0x80) == 0x80)
|
||||
#define TEAR_IS_NONSECURE_SET(x) (((x) % 0x18) == 0x18)
|
||||
#define TEAR_IS_NONSECURE_SET(x) ((((x) & 0x18) >> 3) == PICOPASS_NON_SECURE_PAGEMODE)
|
||||
#define TEAR_BAD(x) (((x) & 0x01) == 0)
|
||||
|
||||
// perform initial read here, repeat if failed or 00s
|
||||
|
||||
Reference in new issue
Block a user