zhovner / mfdread

Mifare 1k/4k dumps parser in human readable format
306 stars 51 forks source link

Access bits not shown for sectors > 32 on 4k cards #17

Open magu opened 5 months ago

magu commented 5 months ago

The access bits for the 16 block sectors in the latter part of a 4k card are not shown properly but ERR is printed instead. According to the data sheet these are defined in the same way as in the 4 block sectors, but in clusters of 5 blocks each.

image

Thus it should be fairly trivial to calculate and save the access bits to block 0-4 instead of only 0, 5-9 instead of only 1, and lastly 10-14 instead of only 2 when sector is > 31.