emrtd: Force dumping EF_SOD

This commit is contained in:
Ave
2020-12-14 02:42:37 +03:00
parent 41a7bdef1c
commit a5aed0dffd

View File

@@ -804,6 +804,7 @@ int dumpHF_EMRTD(char *documentnumber, char *dob, char *expiry) {
PrintAndLogEx(INFO, "EF_DG1: %s", sprint_hex(response, resplen));
}
}
// TODO: account for the case of no BAC
PrintAndLogEx(DEBUG, "doc: %s", documentnumber);
PrintAndLogEx(DEBUG, "dob: %s", dob);
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, EF_SOD, "EF_SOD", use_14b);
DropField();
return PM3_SUCCESS;
}