mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Add hitag2 write password auth
This commit is contained in:
parent
4100f0dd76
commit
cb45313981
3 changed files with 88 additions and 59 deletions
|
@ -106,6 +106,7 @@ static int usage_hitag_writer(void) {
|
|||
PrintAndLogEx(NORMAL, " Hitag1 (1*)");
|
||||
PrintAndLogEx(NORMAL, " Hitag2 (2*)");
|
||||
PrintAndLogEx(NORMAL, " 24 <key> (set to 0 if no authentication is needed) <page> <byte0...byte3> write page on a Hitag2 tag");
|
||||
PrintAndLogEx(NORMAL, " 27 <password> <page> <byte0...byte3> write page on a Hitag2 tag");
|
||||
return 0;
|
||||
}
|
||||
static int usage_hitag_checkchallenges(void) {
|
||||
|
@ -659,6 +660,12 @@ static int CmdLFHitagWriter(const char *Cmd) {
|
|||
num_to_bytes(param_get32ex(Cmd, 3, 0, 16), 4, htd.crypto.data);
|
||||
break;
|
||||
}
|
||||
case WHT2F_PASSWORD: {
|
||||
num_to_bytes(param_get64ex(Cmd, 1, 0, 16), 4, htd.pwd.password);
|
||||
arg2 = param_get32ex(Cmd, 2, 0, 10);
|
||||
num_to_bytes(param_get32ex(Cmd, 3, 0, 16), 4, htd.crypto.data);
|
||||
break;
|
||||
}
|
||||
case RHTSF_CHALLENGE:
|
||||
case RHTSF_KEY:
|
||||
case RHT2F_PASSWORD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue