From 2bf7abbdfcfc475ea385b62843ad132fd9c0d40a Mon Sep 17 00:00:00 2001 From: Robert Wittek <18316389+robo-w@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:35:31 +0200 Subject: [PATCH 1/2] Improve output checks in mf_backdoor_dump.py Signed-off-by: Robert Wittek <18316389+robo-w@users.noreply.github.com> --- client/pyscripts/mf_backdoor_dump.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/pyscripts/mf_backdoor_dump.py b/client/pyscripts/mf_backdoor_dump.py index 2831db5de..5e17aa961 100644 --- a/client/pyscripts/mf_backdoor_dump.py +++ b/client/pyscripts/mf_backdoor_dump.py @@ -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: From 6e7487065766edd4ca2b95f354c2d69f34d70f67 Mon Sep 17 00:00:00 2001 From: Robert Wittek <18316389+robo-w@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:40:54 +0200 Subject: [PATCH 2/2] Update CHANGELOG for mf_backdoor_dump.py changes Signed-off-by: Robert Wittek <18316389+robo-w@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b4aba46e..1308c7f76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]