Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/pyscripts/fm11rf08s_recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ def show_key(sec, key_type, key):
nt[sec][key_type], nt_enc[sec][key_type], par_err[sec][key_type]]
if debug:
print(' '.join(cmd))
subprocess.run(cmd, capture_output=True)
subprocess.run(cmd, capture_output=True, shell=False)
cmd = [staticnested_2x1nt_path,
f"keys_{uid:08x}_{real_sec:02}_{nt[sec][0]}.dic", f"keys_{uid:08x}_{real_sec:02}_{nt[sec][1]}.dic"]
if debug:
print(' '.join(cmd))
subprocess.run(cmd, capture_output=True)
subprocess.run(cmd, capture_output=True, shell=False)
filtered_dicts[sec][key_type] = True
for key_type in [0, 1]:
keys_set = set()
Expand All @@ -300,7 +300,7 @@ def show_key(sec, key_type, key):
f"keys_{uid:08x}_{real_sec:02}_{nt[sec][key_type]}_filtered.dic"]
if debug:
print(' '.join(cmd))
result = subprocess.run(cmd, capture_output=True, text=True).stdout
result = subprocess.run(cmd, capture_output=True, text=True, shell=False).stdout
keys_def_set = set()
for line in result.split('\n'):
matched = match_key(line)
Expand Down Expand Up @@ -332,7 +332,7 @@ def show_key(sec, key_type, key):
nt[sec][key_type], nt_enc[sec][key_type], par_err[sec][key_type]]
if debug:
print(' '.join(cmd))
subprocess.run(cmd, capture_output=True)
subprocess.run(cmd, capture_output=True, shell=False)
keys_set = set()
with (open(f"keys_{uid:08x}_{real_sec:02}_{nt[sec][key_type]}.dic")) as f:
while line := f.readline().rstrip():
Expand Down
Loading