From 928bc2cfd9a55a3eb91945549b211ff085aa67d1 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Sat, 28 Sep 2024 17:30:27 -0700 Subject: [PATCH] Python 3.11 and lower require alternating quote types in f-strings --- traceKeyExtractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traceKeyExtractor.py b/traceKeyExtractor.py index a73447a..d60b42a 100644 --- a/traceKeyExtractor.py +++ b/traceKeyExtractor.py @@ -85,7 +85,7 @@ def discoverKeys(): # -c specifies commands within proxmark 3 software cmd_list = [pm3Location / pm3Command,"-o","-c", f"trace load -f {trace}; trace list -1 -t mf -f {dictionaryFilepath}; exit"]; print(f"Viewing tracelog with {len(keyList)} discovered keys") - print(f"pm3 {" ".join(cmd_list[1:])}") + print(f"pm3 {' '.join(cmd_list[1:])}") result = subprocess.run(cmd_list, shell=os.name == 'nt',stdout=subprocess.PIPE, stderr=subprocess.PIPE) output = result.stdout; @@ -192,7 +192,7 @@ def bruteForce(args): cmd_list = [pm3Location / mfNonceBruteCommand] + args print(" Running bruteforce command:") print(" ",end = "") - print(f"tools/mf_nonce_brute {" ".join(cmd_list[1:])}") + print(f"tools/mf_nonce_brute {' '.join(cmd_list[1:])}") result = subprocess.run(cmd_list, shell=os.name == 'nt', stdout=subprocess.PIPE, stderr=subprocess.PIPE) #Parse out the key