mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 06:35:38 -07:00
lsapp field on/off fix
This commit is contained in:
parent
857d67d733
commit
4e7603d2d7
1 changed files with 7 additions and 3 deletions
|
@ -1530,8 +1530,14 @@ int DesfireFillAppList(DesfireContext *dctx, PICCInfoS *PICCInfo, AppListS appLi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// field on-off zone
|
||||||
|
DesfireFillPICCInfo(dctx, PICCInfo, deepmode);
|
||||||
|
|
||||||
if (PICCInfo->appCount > 0) {
|
if (PICCInfo->appCount > 0) {
|
||||||
for (int i = 0; i < PICCInfo->appCount; i++) {
|
for (int i = 0; i < PICCInfo->appCount; i++) {
|
||||||
|
if (i == 0)
|
||||||
|
res = DesfireSelectAIDHex(dctx, appList[i].appNum, false, 0);
|
||||||
|
else
|
||||||
res = DesfireSelectAIDHexNoFieldOn(dctx, appList[i].appNum);
|
res = DesfireSelectAIDHexNoFieldOn(dctx, appList[i].appNum);
|
||||||
if (res != PM3_SUCCESS)
|
if (res != PM3_SUCCESS)
|
||||||
continue;
|
continue;
|
||||||
|
@ -1562,8 +1568,6 @@ int DesfireFillAppList(DesfireContext *dctx, PICCInfoS *PICCInfo, AppListS appLi
|
||||||
}
|
}
|
||||||
|
|
||||||
// field on-off zone
|
// field on-off zone
|
||||||
DesfireFillPICCInfo(dctx, PICCInfo, deepmode);
|
|
||||||
|
|
||||||
if (PICCInfo->appCount > 0 && deepmode) {
|
if (PICCInfo->appCount > 0 && deepmode) {
|
||||||
for (int i = 0; i < PICCInfo->appCount; i++) {
|
for (int i = 0; i < PICCInfo->appCount; i++) {
|
||||||
DesfireCheckAuthCommands(appList[i].appNum, appList[i].appDFName, 0, &appList[i].authCmdCheck);
|
DesfireCheckAuthCommands(appList[i].appNum, appList[i].appDFName, 0, &appList[i].authCmdCheck);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue