Mifare-Windows-Tool icon indicating copy to clipboard operation
Mifare-Windows-Tool copied to clipboard

Incorrect writing to Mifare Classic 1K card

Open deReeperJosh opened this issue 4 years ago • 6 comments

I wrote to my mifare classic 1K cards with the attached dump files, but this broke the cards and they are no longer recognised as Mifare classic cards. Is there something wrong with these dump files? The access bits are all correct for every sector.

dumpfiles.zip

deReeperJosh avatar Dec 26 '20 00:12 deReeperJosh

I'm not an expert about ACs but I think your access bits are too restrictive

https://stackoverflow.com/questions/28274177/mifare-access-condition-calculation

I've edited your dump 'charge.dump' and modified ACs like this with AC: FF0780 (with an hex editor) image

here is the modified dump. could you try again to write a tag with this modified dump? charge_ACs_modified.zip

xavave avatar Dec 26 '20 18:12 xavave

Unfortunately, it still produces the same error. I think it could be to do with the style of card I am using, as one other type of card have no trouble being re-read using your tool.

mifare

deReeperJosh avatar Dec 26 '20 19:12 deReeperJosh

The screenshot above was produced after writing the modified dump to the card and then trying to read the same card again.

deReeperJosh avatar Dec 26 '20 20:12 deReeperJosh

yes, probably that the style of card you are using is not compatible

xavave avatar Dec 26 '20 20:12 xavave

Sorry for not being an expert but I do not understand why I cannot copy back a previously dumped card.

Guessing size: seems to be a 1024-byte card Writing 64 blocks |...........................................xxxfailed to write trailer block 47 xxxxfailed to write trailer block 51 x............| Done, 55 of 64 blocks written.

Any clue? Am I missing something?

GorkaLandaburu avatar Oct 01 '21 19:10 GorkaLandaburu

Sorry for not being an expert but I do not understand why I cannot copy back a previously dumped card.

Guessing size: seems to be a 1024-byte card

Writing 64 blocks |...........................................xxxfailed to write trailer block 47

xxxxfailed to write trailer block 51

x............|

Done, 55 of 64 blocks written.

Any clue? Am I missing something?

Maybe because AC (access conditions) of the original card are restrictive so then you cannot write these blocks again

xavave avatar Oct 01 '21 19:10 xavave