Merge pull request #1209 from aveao/emrtd

emrtd: Add EF_CardAccess parsing to offline info
This commit is contained in:
Iceman
2021-02-21 01:22:36 +01:00
committed by GitHub

View File

@@ -1972,6 +1972,16 @@ int infoHF_EMRTD_offline(const char *path) {
uint8_t dg_hashes_calc[17][64] = { { 0 } };
int hash_algo = 0;
strcpy(filepath, path);
strncat(filepath, PATHSEP, 2);
strcat(filepath, dg_table[EF_CardAccess].filename);
if (loadFile_safeEx(filepath, ".BIN", (void **)&data, (size_t *)&datalen, false) == PM3_SUCCESS) {
emrtd_print_ef_cardaccess_info(data, datalen);
} else {
PrintAndLogEx(HINT, "The error above this is normal. It just means that your eMRTD lacks PACE.");
}
strcpy(filepath, path);
strncat(filepath, PATHSEP, 2);
strcat(filepath, dg_table[EF_SOD].filename);