File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1335,6 +1335,10 @@ def decrypt_by_list(self, rs: list):
13351335 print ()
13361336 return gen .keys
13371337
1338+ @staticmethod
1339+ def disp_key (key : str ):
1340+ return f"{ key } [{ '' .join (chr (c ) if 31 < c < 127 else '.' for c in bytes .fromhex (key ))} ]"
1341+
13381342 def on_exec (self , args : argparse .Namespace ):
13391343 if not args .decrypt :
13401344 count = self .cmd .mf1_get_detection_count ()
@@ -1378,7 +1382,9 @@ def on_exec(self, args: argparse.Namespace):
13781382 print (" > Result ---------------------------" )
13791383 for block , result_for_block in result_maps_for_uid .items ():
13801384 for type_ , results in result_for_block .items ():
1381- print (f" > Block { block } , { type_ } key result: { results } " )
1385+ print (f" > Block { block } , { type_ } key result:" )
1386+ for key in sorted (results ):
1387+ print (f" - { self .disp_key (key )} " )
13821388
13831389
13841390@hf_mf .command ('eload' )
You can’t perform that action at this time.
0 commit comments