mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-05 07:36:14 +08:00
fixed the mifare bug
This commit is contained in:
parent
545a1f385c
commit
423efaccad
1 changed files with 1 additions and 1 deletions
|
@ -1925,7 +1925,7 @@ void ReaderMifare(uint32_t parameter)
|
||||||
{
|
{
|
||||||
if ( (parameter != 0) && (memcmp(nt, nt_noattack, 4) == 0) ) continue;
|
if ( (parameter != 0) && (memcmp(nt, nt_noattack, 4) == 0) ) continue;
|
||||||
|
|
||||||
isNULL = (nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0);
|
isNULL = !(nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0);
|
||||||
if ( (isNULL != 0 ) && (memcmp(nt, nt_attacked, 4) != 0) ) continue;
|
if ( (isNULL != 0 ) && (memcmp(nt, nt_attacked, 4) != 0) ) continue;
|
||||||
|
|
||||||
if (nt_diff == 0)
|
if (nt_diff == 0)
|
||||||
|
|
Loading…
Reference in a new issue