mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 07:05:40 -07:00
more rights refactoring
This commit is contained in:
parent
bbf7b1a26d
commit
606c4a2ecd
1 changed files with 2 additions and 1 deletions
|
@ -6266,7 +6266,8 @@ static int CmdHF14ADesChFileSettings(const char *Cmd) {
|
|||
DesfireSetCommMode(&dctx, DCMPlain);
|
||||
res = DesfireGetFileSettings(&dctx, fileid, buf, &buflen);
|
||||
if (res == PM3_SUCCESS && buflen > 5) {
|
||||
uint8_t chright = buf[2] & 0x0f;
|
||||
uint8_t chright = 0;
|
||||
DesfireDecodeFileAcessMode(&buf[2], NULL, NULL, NULL, &chright) ;
|
||||
if (verbose)
|
||||
PrintAndLogEx(INFO, "Current access right for change file settings: %s", GetDesfireAccessRightStr(chright));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue