mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
rcovered_pk: fix c/h for partial in selftests
This commit is contained in:
parent
f26727eb28
commit
86de7f512c
1 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,8 @@ def selftests():
|
||||||
elif len(t['samples'])//2 == 1:
|
elif len(t['samples'])//2 == 1:
|
||||||
recovereds = [(c, h) for c, h, pk in list(recovered)
|
recovereds = [(c, h) for c, h, pk in list(recovered)
|
||||||
if t['pk'].lower() == binascii.hexlify(pk).decode('utf8').lower()]
|
if t['pk'].lower() == binascii.hexlify(pk).decode('utf8').lower()]
|
||||||
if len(recovereds) > 0:
|
if len(recovereds) == 1:
|
||||||
|
c, h = recovereds[0]
|
||||||
print("%15s/%-8s ( %s ) partial" % (c, h, color('ok', fg='green')))
|
print("%15s/%-8s ( %s ) partial" % (c, h, color('ok', fg='green')))
|
||||||
else:
|
else:
|
||||||
succeeded = False
|
succeeded = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue