Topic: MIFARE Ultralight write problem

Hi, I'm tryng to correctly write on a MIFARE Ultralight card with the mfultool but something strange appears.

This is the dump file of what I want to write:

04 6b 30 d7 59 f5 02 80  2e 48 57 64 fe 6b dd ff
aa aa aa aa 
aa aa aa aa 
aa aa aa aa
aa aa aa aa
aa aa aa aa
aa aa aa aa 
aa aa aa aa
aa aa aa aa
aa aa aa aa
aa aa aa aa 
aa aa aa aa
aa aa aa aa

And this is what is written to the card:

04 6b 30 d7 59 f5 02 80  2e 48 57 64 fe 6b dd ff
3b 74 79 70
aa aa aa aa
73 74 61 6c
aa aa aa aa
aa aa aa aa
aa aa aa aa
61 75 20 4d
aa aa aa aa
aa aa aa aa
21 00 00 00
3d 77 6f 72
aa aa aa aa

Data pages 5, 7, 11, 14 and 15 are not correctly written.

I don't know if the problem could be the value of the 4 page (OTP)...Any ideas?

Last edited by zuck (2009-09-18 11:15:14)

Re: MIFARE Ultralight write problem

Hello Zuck,

zuck wrote:

Data pages 5, 7, 11, 14 and 15 are not correctly written.

According to your dump, it seems to be data pages 4, 6, 10, 13 and 14 which are not "correctly" written...
And according to MIFARE Ultralight specs and your dump: theses pages are locked on your card...

MIFARE Ultralight specs:
http://tageventor.googlecode.com/files/ … c_V3.4.pdf

Feel free to read others posts on forum: i.e. http://www.libnfc.org/community/topic/2 … ouchatags/
There are some useful links like: http://staticfree.info/~steve/decode_mful_dump.py
A little python script which help to "humanly" read MIFARE Ultratag dump. (If someone is interesting in rewrote this in C... patches are welcome)

Hope it helps.

--
Romuald

Romuald Conty

Re: MIFARE Ultralight write problem

You're right. Thanks! wink