mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
grabber: make sure grabbed_output always return a string
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user