refactor: move lf hitag read/write --hts to lf hitag hts rdbl/wrbl
This commit is contained in:
1 parent
0614251555
commit
eb3cd2a3eb
2 files changed
+26
-105
No files matched your search
@@ -340,6 +340,7 @@ static int CmdLFHitagSWrite(const char *Cmd) {
|
||||
return PM3_EINVARG;
|
||||
} else if (auth_methods == 0) {
|
||||
use_plain = true;
|
||||
PrintAndLogEx(INFO, "Write to " _YELLOW_("Hitag S") " in Plain mode");
|
||||
}
|
||||
|
||||
lf_hitag_data_t packet;
|
||||
@@ -351,6 +352,7 @@ static int CmdLFHitagSWrite(const char *Cmd) {
|
||||
if (use_nrar) {
|
||||
packet.cmd = WHTSF_CHALLENGE;
|
||||
memcpy(packet.NrAr, nrar, sizeof(packet.NrAr));
|
||||
PrintAndLogEx(INFO, "Authenticating to " _YELLOW_("Hitag S") " in Challenge mode");
|
||||
}
|
||||
|
||||
if (use_82xx) {
|
||||
@@ -361,6 +363,7 @@ static int CmdLFHitagSWrite(const char *Cmd) {
|
||||
if (use_crypto) {
|
||||
packet.cmd = WHTSF_KEY;
|
||||
memcpy(packet.key, key, sizeof(packet.key));
|
||||
PrintAndLogEx(INFO, "Authenticating to " _YELLOW_("Hitag S") " in Crypto mode");
|
||||
}
|
||||
|
||||
clearCommandBuffer();
|
||||
|
||||
Reference in new issue
Block a user