From 3923c8858d7307f9a5ca8fbf61f43dcffaddcd5f Mon Sep 17 00:00:00 2001 From: Foxushka <135865149+Foxushka@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:29:36 +0300 Subject: [PATCH] fm11rf08s script: Use last 4 bytes from UID, fixes crash on FM11RF08S-7B --- CHANGELOG.md | 1 + client/pyscripts/fm11rf08s_recovery.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b409ff060..745625fdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Fixed fm11rf08s script for non-4B UID (FM11RF08S-7B) (@Foxushka) - Added more fingerprinting in `hf mf info` (@doegox) - Added --issue and (--emu)lator support to `hf iclass encode` command (@micsen) - Added custom CTF Wiegand format from Defcon32 with comments (@micsen) diff --git a/client/pyscripts/fm11rf08s_recovery.py b/client/pyscripts/fm11rf08s_recovery.py index 9e37e775f..7dc86a128 100755 --- a/client/pyscripts/fm11rf08s_recovery.py +++ b/client/pyscripts/fm11rf08s_recovery.py @@ -72,7 +72,7 @@ p.console("hf 14a read") uid = None for line in p.grabbed_output.split('\n'): if "UID:" in line: - uid = int(line[10:].replace(' ', ''), 16) + uid = int(line[10:].replace(' ', '')[-8:], 16) if uid is None: print("Card not found") if restore_color: