mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
grabber: make sure grabbed_output always return a string
This commit is contained in:
parent
dc91a6d1da
commit
7eb71e0b06
2 changed files with 13 additions and 9 deletions
|
@ -65,10 +65,10 @@ p = pm3.pm3()
|
|||
p.console("hf 14a read")
|
||||
uid = None
|
||||
|
||||
if p.grabbed_output is not None:
|
||||
for line in p.grabbed_output.split('\n'):
|
||||
if "UID:" in line:
|
||||
uid = int(line[10:].replace(' ', '')[-8:], 16)
|
||||
for line in p.grabbed_output.split('\n'):
|
||||
print(line)
|
||||
if "UID:" in line:
|
||||
uid = int(line[10:].replace(' ', '')[-8:], 16)
|
||||
|
||||
if uid is None:
|
||||
print("Card not found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue