RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.62k stars 979 forks source link

Unable to set NTAG version/signature using `hf_mf_ultimatecard` #2325

Closed antgamdia closed 3 months ago

antgamdia commented 3 months ago

Describe the bug Both version and signature in NTAG 21X can't be written in magic gen4 cards since they are stored in blocks 242-251, which unless you allow writing in them, it will yield a write error.

To Reproduce Steps to reproduce the behavior:

  1. With a magic card gen4 aka "ultimate card", try changing the version or signature using commands like:
    • script run hf_mf_ultimatecard -v 0004040201000f03
    • script run hf_mf_ultimatecard -s 8B76052EE42F5567BEB53238B3E3F9950707C0DCC956B5C5EFCFDB709B2D82B3
    • script run hf_mf_ultimatecard -w 1
  2. When reaching those "problematic" blocks, it fails with wrote block ..XX failed

Expected behavior It should properly write in those blocks, therefore setting version and signature.

Screenshots N/A

Desktop (please complete the following information): N/A (using latest available version of the script, see https://github.com/RfidResearchGroup/proxmark3/blob/v4.18218/client/luascripts/hf_mf_ultimatecard.lua)

Additional context I'll be sending a PR fixing it shortly.