Skip to content

Commit

Permalink
Rewrote completely cmds & options lf hitag read/dump/wrbl/ta
Browse files Browse the repository at this point in the history
for more coherence with other pm3 cmds.
Still there remain strange things but it should be a step in the right direction...
  • Loading branch information
doegox committed Jul 20, 2023
1 parent 216ad57 commit 173379b
Show file tree
Hide file tree
Showing 2 changed files with 381 additions and 168 deletions.
4 changes: 2 additions & 2 deletions armsrc/hitag2.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void hitag2_handle_reader_command(uint8_t *rx, const size_t rxlen, uint8_
}
break;

// Received RWD authentication challenge and respnse
// Received RWD authentication challenge and response
case 64: {
// Store the authentication attempt
if (auth_table_len < (AUTH_TABLE_LENGTH - 8)) {
Expand Down Expand Up @@ -891,7 +891,7 @@ static bool hitag2_test_auth_attempts(uint8_t *rx, const size_t rxlen, uint8_t *
if (bCrypto) {
Dbprintf("auth: %02x%02x%02x%02x%02x%02x%02x%02x Failed, removed entry!", NrAr[0], NrAr[1], NrAr[2], NrAr[3], NrAr[4], NrAr[5], NrAr[6], NrAr[7]);

// Removing failed entry from authentiations table
// Removing failed entry from authentications table
memcpy(auth_table + auth_table_pos, auth_table + auth_table_pos + 8, 8);
auth_table_len -= 8;

Expand Down
Loading

0 comments on commit 173379b

Please sign in to comment.