mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
hf tesla info - better textual output
This commit is contained in:
parent
6d12f0281a
commit
c364a6821c
1 changed files with 16 additions and 7 deletions
|
@ -191,8 +191,6 @@ static int info_hf_tesla(void) {
|
||||||
memcpy(auth, response, sizeof(auth));
|
memcpy(auth, response, sizeof(auth));
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "CHALL... %s", sprint_hex_inrow(auth, sizeof(auth)));
|
|
||||||
|
|
||||||
keep_field_on = false;
|
keep_field_on = false;
|
||||||
DropField();
|
DropField();
|
||||||
|
|
||||||
|
@ -203,12 +201,23 @@ static int info_hf_tesla(void) {
|
||||||
for (int i=0; i < 3; i++) {
|
for (int i=0; i < 3; i++) {
|
||||||
PrintAndLogEx(INFO, "%d - %s", i, sprint_hex_inrow(pk[i], 65));
|
PrintAndLogEx(INFO, "%d - %s", i, sprint_hex_inrow(pk[i], 65));
|
||||||
}
|
}
|
||||||
PrintAndLogEx(INFO, "Form factor... %s", sprint_hex_inrow(form_factor, sizeof(form_factor)));
|
if (form_factor[1] == 1) {
|
||||||
PrintAndLogEx(INFO, "Version....... %s", sprint_hex_inrow(version, sizeof(version)));
|
PrintAndLogEx(INFO, "Form factor... %s (card)", sprint_hex_inrow(form_factor, sizeof(form_factor)));
|
||||||
|
} else if (form_factor[1] == 2){
|
||||||
if ((memcmp(pk[0], pk[1], 65) == 0)) {
|
PrintAndLogEx(INFO, "Form factor... %s (phone app)", sprint_hex_inrow(form_factor, sizeof(form_factor)));
|
||||||
PrintAndLogEx(INFO, "GaussKey detected");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sizeof(version) > 0) {
|
||||||
|
PrintAndLogEx(INFO, "Version....... %s", sprint_hex_inrow(version, sizeof(version)));
|
||||||
|
}
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "CHALL......... %s", sprint_hex_inrow(auth, sizeof(auth)));
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "Fingerprint");
|
||||||
|
if ((memcmp(pk[0], pk[1], 65) == 0)) {
|
||||||
|
PrintAndLogEx(INFO, " GaussKey detected");
|
||||||
|
}
|
||||||
|
//
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue