mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 19:24:10 +08:00
Fix mfc gen1b/gen1b detection
This commit is contained in:
parent
644ff5cf47
commit
6422cc6d13
1 changed files with 2 additions and 5 deletions
|
@ -1997,11 +1997,8 @@ void MifareCIdent() {
|
|||
|
||||
// Generation 1 test
|
||||
ReaderTransmitBitsPar(wupC1, 7, NULL, NULL);
|
||||
|
||||
if (ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
||||
|
||||
if (ReaderReceive(rec, recpar) && (rec[0] == 0x0a)) {
|
||||
ReaderTransmit(wupC2, sizeof(wupC2), NULL);
|
||||
|
||||
if (!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
||||
isGen = GEN_1B;
|
||||
goto OUT;
|
||||
|
@ -2017,7 +2014,7 @@ void MifareCIdent() {
|
|||
|
||||
int res = iso14443a_select_card(uid, NULL, &cuid, true, 0, true);
|
||||
if (res == 2) {
|
||||
Dbprintf("cident AA55C396 == %08X", cuid);
|
||||
// Dbprintf("cident AA55C396 == %08X", cuid);
|
||||
if (cuid == 0xAA55C396) {
|
||||
isGen = GEN_UNFUSED;
|
||||
goto OUT;
|
||||
|
|
Loading…
Reference in a new issue