Skip to content

Commit

Permalink
st25ta02kb getsignature: handle locked tags
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Dec 15, 2024
1 parent c9f2c17 commit 571ac28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/cmdhfst25ta.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ static int st25ta_get_signature(uint8_t *signature) {
}
activate_field = false;
}

if (resplen != 32) {
if ((resplen == 2) && (resp[0] == 0x69) && (resp[1] == 0x82)) {
PrintAndLogEx(WARNING, "GetSignature: Security status not satisfied");
}
DropField();
return PM3_ESOFT;
}
if (signature) {
memcpy(signature, resp, 32);
}
Expand Down

0 comments on commit 571ac28

Please sign in to comment.