emrtd: Force dumping EF_SOD
This commit is contained in:
@@ -804,6 +804,7 @@ int dumpHF_EMRTD(char *documentnumber, char *dob, char *expiry) {
|
|||||||
PrintAndLogEx(INFO, "EF_DG1: %s", sprint_hex(response, resplen));
|
PrintAndLogEx(INFO, "EF_DG1: %s", sprint_hex(response, resplen));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// TODO: account for the case of no BAC
|
||||||
PrintAndLogEx(DEBUG, "doc: %s", documentnumber);
|
PrintAndLogEx(DEBUG, "doc: %s", documentnumber);
|
||||||
PrintAndLogEx(DEBUG, "dob: %s", dob);
|
PrintAndLogEx(DEBUG, "dob: %s", dob);
|
||||||
PrintAndLogEx(DEBUG, "exp: %s", expiry);
|
PrintAndLogEx(DEBUG, "exp: %s", expiry);
|
||||||
@@ -934,6 +935,8 @@ int dumpHF_EMRTD(char *documentnumber, char *dob, char *expiry) {
|
|||||||
dump_file(ks_enc, ks_mac, ssc, file_id, file_name, use_14b);
|
dump_file(ks_enc, ks_mac, ssc, file_id, file_name, use_14b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dump_file(ks_enc, ks_mac, ssc, EF_SOD, "EF_SOD", use_14b);
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user