mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-15 06:09:13 +08:00
more colors
This commit is contained in:
parent
8de4797b30
commit
394ed2d711
1 changed files with 9 additions and 1 deletions
|
@ -525,7 +525,7 @@ globals:
|
||||||
bad = 0
|
bad = 0
|
||||||
for n in blkn_todo:
|
for n in blkn_todo:
|
||||||
cmd = f"hf mf rdbl -c 4 --key {bdkey} --blk {n}"
|
cmd = f"hf mf rdbl -c 4 --key {bdkey} --blk {n}"
|
||||||
lprint(f"`{cmd}`", flush=True, log=False)
|
lprint(f" `{cmd}`", flush=True, log=False, end='')
|
||||||
|
|
||||||
for retry in range(5):
|
for retry in range(5):
|
||||||
p.console(cmd)
|
p.console(cmd)
|
||||||
|
@ -539,11 +539,19 @@ globals:
|
||||||
if found:
|
if found:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
s = color("ok", fg="green")
|
||||||
if not found:
|
if not found:
|
||||||
data.append(f"{n:3d} | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ----------------")
|
data.append(f"{n:3d} | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ----------------")
|
||||||
bad += 1
|
bad += 1
|
||||||
|
s = color("fail", fg="red")
|
||||||
|
|
||||||
|
lprint(" " * (3 - len(str(n))), flush='', log=False, end='', prompt='')
|
||||||
|
lprint(f' ( {s} )', flush='', log=False, prompt='')
|
||||||
|
|
||||||
s = color("ok", fg="green")
|
s = color("ok", fg="green")
|
||||||
|
if bad > 0:
|
||||||
|
s = color("fail", fg="red")
|
||||||
|
|
||||||
lprint(f'Loading ( {s} )', log=False)
|
lprint(f'Loading ( {s} )', log=False)
|
||||||
return data, blkn
|
return data, blkn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue