Closed phaseloop closed 5 months ago
Not a bug in that sense, it works on the assumption that S0 key must be the default mad key, if its not then they are breaking the ndef standard. I would say your tag is from a system that made a mistake or they actually want to break the standard and only their app can read the ndef records out of the box.
Wouldn't be too hard to override the first checks using user supplied key
Makes sense, thank you :)
Describe the bug
I'm running
hf mf ndefread
on a card which probably does not have MAD or is using non-standard key.I'm getting an error:
The problem is - MAD sector 0 is being read always using hardcoded MAD key and not key being provided by user and stored in
ndefkey
variable. Provided key is used to read only subsequent sectors (1..n).Either there should be an option to provide additional MAD sector key or this error message should not suggest using -k switch.
I can fix this - I only need confirmation my thinking is right.
Relevant code part:
https://github.com/RfidResearchGroup/proxmark3/blob/master/client/src/cmdhfmf.c#L6014
This is output of reading my card using
hf mf mad -k A8844B0BCA06
(yes I paste here my key, I don't care, lol).