Merge pull request #2968 from robo-w/patch-1

Improve output checks in mf_backdoor_dump.py
This commit is contained in:
Iceman
2025-09-01 16:43:09 +02:00
committed by GitHub
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -34,6 +34,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac
- Fixed `script run hf_mfu_amiibo_restore.lua` - broken reference to a dependency. (@CorySolovewicz)
- Changed `/client/update_amiibo_tools_lua.py` - updated the output to make things more clear. (@CorySolovewicz)
- Changed `/client/lualibs/amiibo_tools.lua` - updated to the most recent data. (@CorySolovewicz)
- Changed `/client/pyscripts/mf_backdoor_dump.py` - fixed output checks to handle whitespace variations. (@robo-w)
## [Daddy Iceman.4.20469][2025-06-16]
+6 -6
View File
@@ -22,18 +22,18 @@ for bk, sz in BACKDOOR_KEYS:
p.console(f"hf mf ecfill --{sz} -c 4 -k {bk}")
output = p.grabbed_output.split('\n')
if "[#] Card not found" in output:
if any("Card not found" in output_line for output_line in output):
print("Error reading the tag:")
print("\n".join(output))
break
elif "[-] Fill ( fail )" in output:
elif any("Fill ( fail )" in output_line for output_line in output):
continue
elif "[+] Fill ( ok )" not in output:
print("Unexpected output, exiting:")
print("\n".join(output))
elif any("Fill ( ok )" in output_line for output_line in output):
WORKING_KEY = bk
break
else:
WORKING_KEY = bk
print("Unexpected output, exiting:")
print("\n".join(output))
break
if WORKING_KEY is None: