add a key

This commit is contained in:
merlokk 2021-08-11 16:03:01 +03:00
commit 2acbd67900
2 changed files with 6 additions and 1 deletions

View file

@ -1383,7 +1383,11 @@ static int CmdHF14aDesDetect(const char *Cmd) {
}
if (verbose) {
PrintAndLogEx(INFO, "Check keys: DES: %s 2TDEA: %s 3TDEA: %s AES: %s",
if (appid == 0)
PrintAndLogEx(INFO, "Check PICC key num: %d (0x%02x)", dctx.keyNum, dctx.keyNum);
else
PrintAndLogEx(INFO, "Check app: %06x key num: %d (0x%02x)", appid, dctx.keyNum, dctx.keyNum);
PrintAndLogEx(INFO, "keys: DES: %s 2TDEA: %s 3TDEA: %s AES: %s",
keytypes[T_DES] ? _GREEN_("YES") : _RED_("NO"),
keytypes[T_3DES] ? _GREEN_("YES") : _RED_("NO"),
keytypes[T_3K3DES] ? _GREEN_("YES") : _RED_("NO"),

View file

@ -35,6 +35,7 @@ const char *g_mifare_plus_default_keys[] = {
"0102030405060708090a0b0c0d0e0f10",
"00010203040506070809101112131415",
"01020304050607080910111213141516",
"00112233445566778899aabbccddeeff",
"404142434445464748494a4b4c4d4e4f",
"303132333435363738393a3b3c3d3e3f",
};