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:
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
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.
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:
script run hf_mf_ultimatecard -v 0004040201000f03
script run hf_mf_ultimatecard -s 8B76052EE42F5567BEB53238B3E3F9950707C0DCC956B5C5EFCFDB709B2D82B3
script run hf_mf_ultimatecard -w 1
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.