mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
hf mf info: always search for backdoor
This commit is contained in:
parent
09f097b936
commit
c9f4679b5a
1 changed files with 18 additions and 17 deletions
|
@ -9512,9 +9512,9 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
||||||
return PM3_EMALLOC;
|
return PM3_EMALLOC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t blockdata[MFBLOCK_SIZE] = {0};
|
||||||
res = mfCheckKeys_fast(sectorsCnt, true, true, 1, keycnt, keyBlock, e_sector, false, verbose);
|
res = mfCheckKeys_fast(sectorsCnt, true, true, 1, keycnt, keyBlock, e_sector, false, verbose);
|
||||||
if (res == PM3_SUCCESS || res == PM3_EPARTIAL) {
|
if (res == PM3_SUCCESS || res == PM3_EPARTIAL) {
|
||||||
uint8_t blockdata[MFBLOCK_SIZE] = {0};
|
|
||||||
|
|
||||||
if (e_sector[0].foundKey[MF_KEY_A]) {
|
if (e_sector[0].foundKey[MF_KEY_A]) {
|
||||||
PrintAndLogEx(SUCCESS, "Sector 0 key A... " _GREEN_("%012" PRIX64), e_sector[0].Key[MF_KEY_A]);
|
PrintAndLogEx(SUCCESS, "Sector 0 key A... " _GREEN_("%012" PRIX64), e_sector[0].Key[MF_KEY_A]);
|
||||||
|
@ -9539,6 +9539,7 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
||||||
if (e_sector[1].foundKey[MF_KEY_A]) {
|
if (e_sector[1].foundKey[MF_KEY_A]) {
|
||||||
PrintAndLogEx(SUCCESS, "Sector 1 key A... " _GREEN_("%012" PRIX64), e_sector[1].Key[MF_KEY_A]);
|
PrintAndLogEx(SUCCESS, "Sector 1 key A... " _GREEN_("%012" PRIX64), e_sector[1].Key[MF_KEY_A]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t k08s[6] = {0xA3, 0x96, 0xEF, 0xA4, 0xE2, 0x4F};
|
uint8_t k08s[6] = {0xA3, 0x96, 0xEF, 0xA4, 0xE2, 0x4F};
|
||||||
if (mfReadBlock(0, 4, k08s, blockdata) == PM3_SUCCESS) {
|
if (mfReadBlock(0, 4, k08s, blockdata) == PM3_SUCCESS) {
|
||||||
|
@ -9554,10 +9555,10 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
||||||
if (fKeyType != 0xFF) {
|
if (fKeyType != 0xFF) {
|
||||||
PrintAndLogEx(SUCCESS, "Block 0.......... %s", sprint_hex(blockdata, MFBLOCK_SIZE));
|
PrintAndLogEx(SUCCESS, "Block 0.......... %s", sprint_hex(blockdata, MFBLOCK_SIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "--- " _CYAN_("Fingerprint"));
|
PrintAndLogEx(INFO, "--- " _CYAN_("Fingerprint"));
|
||||||
|
|
||||||
|
if (fKeyType != 0xFF) {
|
||||||
// cards with known backdoor
|
// cards with known backdoor
|
||||||
if (memcmp(blockdata + 8, "\x62\x63\x64\x65\x66\x67\x68\x69", 8) == 0) {
|
if (memcmp(blockdata + 8, "\x62\x63\x64\x65\x66\x67\x68\x69", 8) == 0) {
|
||||||
// backdoor might be present, or just a clone reusing Fudan MF data...
|
// backdoor might be present, or just a clone reusing Fudan MF data...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue