1 (edited by p8 2015-01-16 16:13:29)

Topic: I can't format a 1k mifare

Hello everyones!
I'm trying to format a non blank chinesse mifare card and I can't.
I've tried with mifare-classic-format but I got the error "No known authentication key for sector 0"
I did modify the mifare-classic-format.c with the keys that I've get from a mfcuk + mfoc commands then make and still the same error. I did debug the .c file but no one success...

Before of that, I had been working around 20 hours with the command nfc-mfclassic using the mfd file generated by mfoc...

actual keys obtained with mfoc:

---------------------------------------------------------------------
Sector    |    Key A    |ACTS | RESL    |    Key B    |ACTS | RESL
---------------------------------------------------------------------
0    |  302064626664    | . R | . R    |  302030303030    | . R | . R
1    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R
2    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R
3    |  303030302030    | . R | . R    |  303030302030    | . R | . R
4    |  203234336620    | . R | . R    |  20313864310a    | . R | . R
5    |  302030303030    | . R | . R    |  302030303030    | . R | . R
6    |  303020303066    | . R | . R    |  323420633235    | . R | . R
7    |  303030203030    | . R | . R    |  303030203030    | . R | . R
8    |  303165312063    | . R | . R    |  303930302030    | . R | . R
9    |  203638326420    | . R | . R    |  20626230390a    | . R | . R
10    |  302030303030    | . R | . R    |  302030303030    | . R | . R
11    |  383420303430    | . R | . R    |  643120653237    | . R | . R
12    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R
13    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R
14    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R
15    |  ffffffffffff    | . R | . R    |  ffffffffffff    | . R | . R

Anyone could help me?

Thanks!

**sorry for my english is not a good one...

P8

Re: I can't format a 1k mifare

Hi,

You should definitely look at libfreefare, there is an example to format cards...

Romuald Conty

3

Re: I can't format a 1k mifare

I've trying with that, I change the source code setting my new keys, recompile, etc.. and nothing... could you be more explicit? what should I do?
Thanks a lot for your answer!

rconty wrote:

Hi,

You should definitely look at libfreefare, there is an example to format cards...