fix(mifare): make GDM wipe failure-safe
Stage and verify a valid 4-byte UID before committing the clean configuration, propagate write failures, and preserve recovery when cleanup is incomplete. Correct the sector trailer template. Co-Authored-By: OpenAI Codex <noreply@openai.com>
This commit is contained in:
1 parent
2ca0514389
commit
4b99a422c8
2 files changed
+123
-70
No files matched your search
@@ -1171,7 +1171,7 @@ Sectors 2-15
|
||||
| `gdmgethidblk` | Read hidden block |
|
||||
| `gdmsethidblk` | Write a hidden block |
|
||||
| `gdmsetuid` | Set 4-byte / 7-byte UID, or F3 perso (`--f3d`) |
|
||||
| `gdmwipe` | Restore card to factory defaults (`-a` for 4K) |
|
||||
| `gdmwipe` | Reset to a known clean 4-byte template (`-a` for 4K)|
|
||||
| `gdmsetsig` | Write EV1 signature (hidden blocks 5/6), enable sigsec, write default signature key sector |
|
||||
|
||||
### libnfc commands
|
||||
|
||||
Reference in new issue
Block a user