Add a command to reset MF0 / NTAG unsuccessful auth counter.

This commit is contained in:
turbocool3r
2024-07-09 21:30:27 +03:00
parent 202f5d3884
commit 607df41bca
6 changed files with 41 additions and 2 deletions
+10
View File
@@ -628,6 +628,16 @@ class ChameleonCMD:
resp = self.device.send_cmd_sync(Command.MF0_NTAG_SET_COUNTER_DATA, data)
return resp
@expect_response(Status.SUCCESS)
def mfu_reset_auth_cnt(self):
"""
Resets authentication counter
"""
resp = self.device.send_cmd_sync(Command.MF0_NTAG_RESET_AUTH_CNT, bytes())
if resp.status == Status.SUCCESS:
resp.parsed = resp.data[0]
return resp
@expect_response(Status.SUCCESS)
def hf14a_set_anti_coll_data(self, uid: bytes, atqa: bytes, sak: bytes, ats: bytes = b''):
"""