mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
more text changes to hf tesla info
This commit is contained in:
parent
37ecae658f
commit
47908df32e
1 changed files with 8 additions and 7 deletions
|
@ -202,19 +202,21 @@ static int info_hf_tesla(void) {
|
||||||
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 " NOLF, sprint_hex_inrow(form_factor, sizeof(form_factor)));
|
PrintAndLogEx(INFO, "Form factor... %s " NOLF, sprint_hex_inrow(form_factor, sizeof(form_factor)));
|
||||||
uint16_t form_factor_value = form_factor[0] << 8 | form_factor[1];
|
|
||||||
|
uint16_t form_factor_value = MemBeToUint2byte(form_factor);
|
||||||
|
|
||||||
switch (form_factor_value) {
|
switch (form_factor_value) {
|
||||||
case 0x0001:
|
case 0x0001:
|
||||||
PrintAndLogEx(NORMAL, "(card)");
|
PrintAndLogEx(NORMAL, "( card )");
|
||||||
break;
|
break;
|
||||||
case 0x0022:
|
case 0x0022:
|
||||||
PrintAndLogEx(NORMAL, "(fob)");
|
PrintAndLogEx(NORMAL, "( fob )");
|
||||||
break;
|
break;
|
||||||
case 0x0031:
|
case 0x0031:
|
||||||
PrintAndLogEx(NORMAL, "(phone app)");
|
PrintAndLogEx(NORMAL, "( phone app )");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PrintAndLogEx(NORMAL, "(unknown)");
|
PrintAndLogEx(NORMAL, "( unknown )");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,7 +251,6 @@ static int CmdHFTeslaInfo(const char *Cmd) {
|
||||||
return info_hf_tesla();
|
return info_hf_tesla();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int CmdHFTeslaList(const char *Cmd) {
|
static int CmdHFTeslaList(const char *Cmd) {
|
||||||
return CmdTraceListAlias(Cmd, "hf tesla", "7816");
|
return CmdTraceListAlias(Cmd, "hf tesla", "7816");
|
||||||
}
|
}
|
||||||
|
@ -270,4 +271,4 @@ static int CmdHelp(const char *Cmd) {
|
||||||
int CmdHFTESLA(const char *Cmd) {
|
int CmdHFTESLA(const char *Cmd) {
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
return CmdsParse(CommandTable, Cmd);
|
return CmdsParse(CommandTable, Cmd);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue