mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
continue testing next sector
This commit is contained in:
parent
504b019e57
commit
cedfea8149
1 changed files with 4 additions and 4 deletions
|
@ -1978,15 +1978,15 @@ int MifareECardLoad(uint8_t sectorcnt, uint8_t keytype) {
|
||||||
uint64_t ui64Key = emlGetKey(sectorNo, keytype);
|
uint64_t ui64Key = emlGetKey(sectorNo, keytype);
|
||||||
if (sectorNo == 0) {
|
if (sectorNo == 0) {
|
||||||
if (mifare_classic_auth(pcs, cuid, FirstBlockOfSector(sectorNo), keytype, ui64Key, AUTH_FIRST)) {
|
if (mifare_classic_auth(pcs, cuid, FirstBlockOfSector(sectorNo), keytype, ui64Key, AUTH_FIRST)) {
|
||||||
retval = PM3_ESOFT;
|
retval = PM3_EPARTIAL;
|
||||||
if (DBGLEVEL > DBG_ERROR) Dbprintf("Sector[%2d]. Auth error", sectorNo);
|
if (DBGLEVEL > DBG_ERROR) Dbprintf("Sector[%2d]. Auth error", sectorNo);
|
||||||
goto out;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mifare_classic_auth(pcs, cuid, FirstBlockOfSector(sectorNo), keytype, ui64Key, AUTH_NESTED)) {
|
if (mifare_classic_auth(pcs, cuid, FirstBlockOfSector(sectorNo), keytype, ui64Key, AUTH_NESTED)) {
|
||||||
retval = PM3_ESOFT;
|
retval = PM3_EPARTIAL;
|
||||||
if (DBGLEVEL > DBG_ERROR) Dbprintf("Sector[%2d]. Auth nested error", sectorNo);
|
if (DBGLEVEL > DBG_ERROR) Dbprintf("Sector[%2d]. Auth nested error", sectorNo);
|
||||||
goto out;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue