Proxmark3 developers community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

#351 2015-04-12 15:00:18

alaa1993
Member
Registered: 2015-04-04
Posts: 6

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

alaa1993 wrote:

hhhh no is so esay ....thinks
now i need to save all of tag memoiry in STRING OR another type  to each display information in their text view roll

Offline

#352 2015-04-12 16:12:03

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Sorry, but I really don't get what you are saying...

Offline

#353 2015-04-12 16:24:07

alaa1993
Member
Registered: 2015-04-04
Posts: 6

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I want to put all the tag data in a single chain

Offline

#354 2015-04-12 17:30:48

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Just open the dump file with your favorite editor. It's a simple text file.

Offline

#355 2015-04-12 17:45:20

alaa1993
Member
Registered: 2015-04-04
Posts: 6

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

je suis un développeur ,je veux modifier l'interface de l'application pour afficher plusieurs infomations chaque dans leur textview

Offline

#356 2015-04-12 18:17:50

alaa1993
Member
Registered: 2015-04-04
Posts: 6

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

alaa1993 wrote:

I'm a developer, I want to change the application interface to display multiple infomation each in their textview

Offline

#357 2015-04-12 19:24:56

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

If you want to modify the application, feel free to check out the
source code at github and alter it in the way you want.

Offline

#358 2015-04-26 13:56:32

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.2: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* It's now possible to save the mapping range as default.
* Improved Mifare Classic support check. Thanks to Kirill Elagin.
* Sony Xperia Z3 (SOL26) is not supported.

Have a nice day!
ikarus

Last edited by ikarus (2015-04-26 13:56:44)

Offline

#359 2015-05-24 16:48:37

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.3: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* Fixed crash issue for HTC One (m7/m8) with Android 5.x.
   Thanks to "bildin" and many others for helping to find
   a workaround for this. The real issue is still there and
   has to be fixed by HTC.
* It's now possible to create a key file from the currently
   viewed dump using the Editor.
* Added more well known keys to the extended key file.
   (Remove the old and restart MCT to get the new key file.)
* Samsung's Galaxy A3 and Galaxy Alpha are not supported.
* Added scripts to convert .eml to MCT dump files (and vice versa).
   (Python script, not part of the Android app.)
* Added scripts to convert .eml to .mfd files (and vice versa).
   (Python script, not part of the Android app.)
* Some minor code improvements.

Again, I want to thank all of the people who helped to find a workaround
for the HCT One (m7/m8) issue! You guys are great!
For anyone interested in what the issue is and how it was fixed
have a look at the github issue.



Have a nice day!
ikarus

Offline

#360 2015-05-26 18:47:32

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.4: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* Bugfix: Don't save dumps as key files.
   Thanks to Oliver H. for reporting this.


Have a nice day!
ikarus

Offline

#361 2015-09-05 09:02:01

Strideynet
Member
Registered: 2015-09-05
Posts: 1

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hey, thanks for the great app. I'm struggling to find blank, 0 sector write able cards for this, would it be possible for you to recommend one you know is compatible with your app. Every one I check has special commands.

Offline

#362 2015-09-06 12:56:04

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi Strideynet, you are not the only one. Some time ago I wrote something about this:

ikarus wrote:

Just another short notice:
A lot of people asked me (in the forum and via email) where to buy the block 0
writable  tags that work with MCT. A friend of mine found a reliable source:

Mifare Classic 1k
Mifare Classic 4k
Mifare Classic 1k (7 byte UID)

This company also sells the tags via ebay.

I'm sure that is not the only good  source to buy them.
And I'm pretty sure there are cheaper ones, but least these tags work!


Have a nice day!
ikarus

About two month ago I bought one of these tags (Mifare Classic 1k). It works perfectly fine. wink

EDIT/UPDATE: The ebay shop of this source is down (hopefully only temporarily).

Last edited by ikarus (2015-09-07 21:14:37)

Offline

#363 2015-09-26 21:53:39

tontol1
Member
Registered: 2015-09-26
Posts: 3

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi ikarus,
I want to re-open an old post (http://www.proxmark.org/forum/viewtopic.php?pid=7175#p7175) because I have an interesting news.
Today I was able to send my first raw command to a MifareClassic 1k tag using NXP chip inside an Android phone.
Command sent was the AUTH_A (used to start authentication) on sector #0. And finally I got back 4 bytes nounce from tag!!

To get this result I needed to:

1) call BasicTagTechnology.transceive(msg, raw) with raw=false. This way no CRC is computed in request
  and no validation of CRC is performed in the response.
  (see com_android_nfc_NativeNfcTag_doTransceive() function in Android-Nfc-master/nxp/jni/com_android_nfc_NativeNfcTag.cpp)

2) build message in a proper way:
    [0x00, 0x00, 0x60, 0x00, 0xf5, 0x7b]
     |---|    |---|  |---|  |---|  |----------|
      |           |         |       |           |
      |           |         |       |           +- little endian order of CRC([0x60,0x00])=0x7bf5
      |           |         |       +- block #0 (or any other block)
      |           |         +- AuthA command
      |           +- ignored for raw messages (can be any byte)
      +- means Mifare raw message

     NB: First 2 bytes are the header and not part of raw message sent.
     (see phNfc_eMifareCmdList_t enum definition in libnfc-nxp-master/inc/phNfcTypes.h)

Now, the bad news is that I'm not able to invoke BasicTagTechnology.transceive(msg, raw) directly
since it has package scope. The only public method I can use is NfcA.transceive(msg) that calls
BasicTagTechnology.transceive(msg, raw) with raw=true. This is not what I need.
At present the only way I can test my code is executing NfcA.transceive(msg) method in debug mode
and during runtime execution change 'raw' value (via a breakpoint) from true to false.
Works but not very comfortable sad

Anyway I think this is an important test because it shows that raw ISO-14443A messages can be sent without
modifing NXP chipset firmware or else. Probably a patch in the Android NfcA class would be needed to get
full control of NfcA.transceive() method.

Offline

#364 2015-09-27 08:58:45

asper
Contributor
Registered: 2008-08-24
Posts: 1,409

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Good test tontol1 but even solving that problem there is another one to make it "full raw compatible": the ability to send 7bits commands insted of 8bits. 26 (or 52) is a 7bits command that is part of the mifare standard command set managed by the NXP chip. If you want, for example, "talk" with a magic 1st gen mifare card you must send another 7bits command [it is 40] that is not coded inside NXP chip so even with your method it will be not possible to achieve a full raw.

It is something like SRIX4K support: they are not supported by Android because they are not full ISO14443B and have specific commands not supported by the chipset (at least this is what came out by tests) but maybe with your method this one can be solved because those specific commands (SRIX) are 8bits [the command is exactly 0600 = INITIATE]. Let us know if you find a way (also for ISO14443B commnds) !

Last edited by asper (2015-09-27 10:00:51)

Offline

#365 2015-09-30 11:36:22

tontol1
Member
Registered: 2015-09-26
Posts: 3

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

More tests show me some limitations of my method for sending raw ISO14443 messages:
  1) not able to send 7-bits commands (as asper said);
  2) no control over parity bits sent (not clear if computed by Android or Chipset).
So it is not a "full raw"  ISO14443 method.
Probably it can still be useful for doing cryptanalysis of underneath crypto algorithms, since AUTH commands are byte oriented. I'm going that direction, now.

Offline

#366 2015-10-02 21:57:41

mariolino
Contributor
Registered: 2014-04-27
Posts: 47

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi ikarus,
I used your great tool many times on my Sony Xperia Z but, after the lollipop upgrade,  the mct mifare classic tool doesn't work with Mifare Mini ATQA 00 04 SAK 9
1443819265_screenshot_2015-10-02-22-03-22.jpg

i would like inform you that it worked properly on Android 4.4.4 KitKat.
I used your sw to program the TAG on the screenshot.
How can be fixed the issue on new lollipop Android version 5.1.1?

Offline

#367 2015-10-06 19:25:28

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi tontol1,

your work on "raw" ISO14443 messages is quite interesting.

tontol1 wrote:

Probably it can still be useful for doing cryptanalysis of underneath crypto algorithms, since AUTH commands are byte oriented.

This sounds especially interesting. It would be super cool to crack Mifare Classic keys from a simple Android device!
I'm looking forward to hear from your progress!

Offline

#368 2015-10-06 19:45:37

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi mariolino,

mariolino wrote:

Hi ikarus,
I used your great tool many times on my Sony Xperia Z but, after the lollipop upgrade,
the mct mifare classic tool doesn't work with Mifare Mini ATQA 00 04 SAK 9

First of all, parts of this are good news to me wink
I never tried Mifare Mini with MCT. I don't own a mini tag.
Good to know it works!

Now to the bad part:
It is very likely that Sony screwed up. A lot of manufacturers did when it comes
to Mifare Classic and Android 5.+. You can have a look at the two issues that
had already been fixed: #52 and #64. Unfortunately, fixing issues like this is
really annoying.

You can try the usual stuff first before we look deeper into this.
Try out other apps to find out if it's an issue with MCT or Mifare in general (see this)
Also "bildin" (from github) has developed a app to hunt issues like this down.
But I think he didn't publish it...

I've created a issue on github. Lets try to keep the bug/issue related discussion there.

Offline

#369 2015-10-06 23:03:42

mariolino
Contributor
Registered: 2014-04-27
Posts: 47

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

ikarus wrote:

Hi mariolino,

mariolino wrote:

Hi ikarus,
I used your great tool many times on my Sony Xperia Z but, after the lollipop upgrade,
the mct mifare classic tool doesn't work with Mifare Mini ATQA 00 04 SAK 9

First of all, parts of this are good news to me wink
I never tried Mifare Mini with MCT. I don't own a mini tag.
Good to know it works!

Now to the bad part:
It is very likely that Sony screwed up. A lot of manufacturers did when it comes
to Mifare Classic and Android 5.+. You can have a look at the two issues that
had already been fixed: #52 and #64. Unfortunately, fixing issues like this is
really annoying.

You can try the usual stuff first before we look deeper into this.
Try out other apps to find out if it's an issue with MCT or Mifare in general (see this)
Also "bildin" (from github) has developed a app to hunt issues like this down.
But I think he didn't publish it...

I've created a issue on github. Lets try to keep the bug/issue related discussion there.

Dear ikarus, thanks for your quick reply and I want give you a good news for your App..... The Mifare Mini issue comes from the Android Lollipop upgrade for all Apps.
I also used the RFID NFC Tool App, and the issue is present only after the Amdroid upgrade.....
We must search the problem on Lollipop cool

Regarding the mifare hack using the Android, some guys can start fron this gthub
https://github.com/ehabkost/nfc-tools

Offline

#370 2015-10-10 13:53:30

tontol1
Member
Registered: 2015-09-26
Posts: 3

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi Ikarus,
after some work I was able to force MC tag into partial authentications using my test code.
Due to the famous NACK bug  (see "THE DARK SIDE OF SECURITY BY OBSCURITY" and others ) this was just enough to gather enough information to do an "offline" brute force attack.
Since brute force attack is very CPU intensive it cannot be done a mobile device. On modern laptop it requires a lot of days to get a single key.
Nevertheless it is possible, not very fast ... but possible. tongue

To speed-up hacking it's necessary to be able to sync queries with PRNG timing. This is not easy using Java Android api (my way), since Java is not very predictable during execution. C code is much better with this task.
For this reason I think that project nfc-tools (suggested by Mariolino) looks like promising. Maybe with some effort (how big?!) it could be completed and be usable.

Offline

#371 2015-10-13 05:08:41

timmyjane
Contributor
Registered: 2015-08-26
Posts: 12

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Any thoughts on why my htc m8 continuously loses connection?

Offline

#372 2015-10-22 19:28:15

gpagliaroli
Member
Registered: 2015-03-28
Posts: 2

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I have a phone Samsung S3 Neo, in which all commands for a Mifare Classic card works, but the commands do not work on use of blocks of value. They know that this is due? or am I doing something wrong?
Thank you.

Offline

#373 2015-10-22 21:41:20

mariolino
Contributor
Registered: 2014-04-27
Posts: 47

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

gpagliaroli wrote:

I have a phone Samsung S3 Neo, in which all commands for a Mifare Classic card works, but the commands do not work on use of blocks of value. They know that this is due? or am I doing something wrong?
Thank you.

Unfortunately the Samsung S3 Neo use the NFC broadcom chip and it doesn't compatible with NXP tags.
You can buy the old S3 model, it was fully working :-)

Offline

#374 2015-10-22 22:49:30

gpagliaroli
Member
Registered: 2015-03-28
Posts: 2

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

mariolino wrote:
gpagliaroli wrote:

I have a phone Samsung S3 Neo, in which all commands for a Mifare Classic card works, but the commands do not work on use of blocks of value. They know that this is due? or am I doing something wrong?
Thank you.

Unfortunately the Samsung S3 Neo use the NFC broadcom chip and it doesn't compatible with NXP tags.
You can buy the old S3 model, it was fully working :-)

Thx hmm

Offline

#375 2015-10-24 23:03:23

asper
Contributor
Registered: 2008-08-24
Posts: 1,409

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Device tested: Samsung Galaxy S4 Value Edition [I9515] is NOT compatibile with MCT.

Offline

#376 2015-11-12 22:34:18

roni29180
Member
Registered: 2015-11-12
Posts: 3

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

hello
is there any possibility to use MCT with external acr122u nfc reader?
i have a samsung note 3 not compatibile with mifare clasic

Offline

#377 2015-11-17 11:09:35

zyd306
Member
Registered: 2015-11-17
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I agree with the upstairs, if you can make MCT support ACR122 will be able to let a lot of mobilephone for the use of OTG functions and not need to buy a NFC mobilephone, the cost is lower, I hope you can consider, thank you. I found a mistake, the wrong format control bit as sector of the last,should be “FF078069” is not “FF0780BC”

Offline

#378 2015-11-17 11:11:28

zyd306
Member
Registered: 2015-11-17
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

example-dump-file smile

Offline

#379 2015-11-17 12:35:08

zyd306
Member
Registered: 2015-11-17
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I have just started learning to write a program, testing the code of others, but the source code in the presence of two BUG, can you guide me, thx you! Source address: https://github.com/flylai/WaterCard_RW_forAndroid ,  When the program starts, NC is not enabled,if you click NFC settings, even if the NFC does not open the return will not be detected  ; triggering NFC can only read the card can not write a card,If you click on writecard, the program crashes.You can reply to my e-mail, thx you very much!

Offline

#380 2015-11-19 11:37:49

zyd306
Member
Registered: 2015-11-17
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Two Bugs I  have solved myself smile  smile

Offline

#381 2015-11-29 14:58:50

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

roni29180 wrote:

hello
is there any possibility to use MCT with external acr122u nfc reader?
i have a samsung note 3 not compatibile with mifare clasic

It is not possible by now. But there are others out there wanting the same feature.
Have a look at: https://github.com/ikarus23/MifareClassicTool/issues/13.
Unfortunately my statement is the same as it was a year ago:
http://www.proxmark.org/forum/viewtopic … 879#p12879


zyd306 wrote:

I found a mistake, the wrong format control bit as sector of the last,should be “FF078069” is not “FF0780BC”

This is not a mistake. I chose to do it this way because all the empty tags I own were formatted this way.
I'm not exactly sure why. This byte (the General Purpose Byte - GPB) is 0x69 for standardized
cards and refers to non-personalized card, according to the Mifare Application Directory (MAD) standard.
But I'm not sure why the GPB of the last sector is 0xBC. I've seen this on both, 4byte and 7byte UID, tags.

Offline

#382 2015-11-29 15:00:11

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.5: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* Bugfix: Don't save key files with bad characters.
   Thanks to Pascal for fixing this issue.
* Fixed SAK issue of Sony's Xperia Z3 in combination with emulated tags.
   Thanks again to "bildin" and to "moscowneversleeping" for reporting,
   testing and patching this issue.
* OnePlus One, Samsung Galaxy Grand Prime, Samsung Galaxy S5 mini,
   Sony Xperia Z2 (some models), Google Nexus 9, Jiayu S3,
   LG G4, Samsung Galaxy A5, ZTE Nubia Z7 Max (NX505J),
   Samsung Galaxy S6, Samsung Galaxy S6 Edge, Asus Zenfone 2,
   Google Nexus 6, Motorola's Moto X (2014, 2ed gen.) are not supported.


Have a nice day!
ikarus

Offline

#383 2015-12-08 23:16:23

KCO
Member
Registered: 2015-12-08
Posts: 1

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

any possibility of including decoding of other data besides the value blocks ?

Offline

#384 2015-12-12 14:49:56

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

KCO wrote:

any possibility of including decoding of other data besides the value blocks ?

what kind of decoding are you missing?

Offline

#385 2015-12-12 20:59:10

Tosh144
Member
Registered: 2015-12-12
Posts: 1

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I purchased some standard mifare cards online from Amazon and have had a lot of fun learning how they are structured but now I'm trying to locate a reliable dealer for UID modifiable cards. The cards I got on amazon are 4k's and ideally I'd like to get the same with a modifiable UID. Are there any reliable sources, in the US or Canada? Preferably that take paypal and not my CC info. I did run a search of this forum and surprisingly didn't find anything.

Offline

#386 2015-12-14 20:14:29

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi Tosh,

have a look at this post.

Cheers
  ikarus

Offline

#387 2016-01-23 18:50:40

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.6: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* Bugfix: Fixed crash which occurred instantly after
   starting (on some devices).

There are still some issues on Android 6.x devices like the Nexus 5x/6p.
* https://github.com/ikarus23/MifareClassicTool/issues/77
* https://github.com/ikarus23/MifareClassicTool/issues/78
I'm working on it...


Have a nice day!
ikarus

Offline

#388 2016-01-26 02:43:04

fusionous
Member
Registered: 2016-01-26
Posts: 1

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hello, May I inquire what device should I use to read and write a mifare card? I'm using samsung note 3 and its not reading any data from the card. Could anyone kindly help? Much appreciated!

Offline

#389 2016-01-27 09:34:40

atkinchris
Contributor
Registered: 2016-01-24
Posts: 10

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

fusionous wrote:

Hello, May I inquire what device should I use to read and write a mifare card?

Android phones with NFC are a great start - they support a range of tags and libraries. Are you getting any errors?

Offline

#390 2016-01-30 11:18:06

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hey there,
any Android phone/tablet with an NFC chip by NXP should do the trick.
However there are some strange behaviors within new Android devices lately.
Like the Nexus 5x/6p or other Android 5.x/6.x devices.

There are some devices which are definitively know to work with MCT.
Have a look at the readme file.

Offline

#391 2016-02-05 22:52:47

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

New release! (Version 2.0.7: APK-file, Google Play (Donate Version), F-Droid)
(See: original post, updated)

* Bugfix: Request permissions on Android 6.x devices to read/write
   the external storage. Thanks to Mislav Jurinić.

Running MCT on Android 6.x devices should be fine by now.

Have a nice day!
ikarus

Offline

#392 2016-02-14 18:54:56

twisted.transistor
Member
Registered: 2016-02-14
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi there. I have been using your app for a while and what to say huge thanks to you for developing it!

Past time I've got a problem. I have a Mifare Classic tag, but cause of some reasons tag's SAK was changed from 08 to 20 which leads to the situation when I can not use Mifare Classic app. I just got a message that "Not Mifare Classic tag".

Is there any way I can change the SAK manually?
I've tried to make a dirty fix myself using code from GitHub, but I failed.

Will really appreciate any help, thanks.

Offline

#393 2016-02-24 21:23:04

vlader
Member
Registered: 2016-02-24
Posts: 5

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

I have just encountered with SAK problem too.

It was changed from 8 to 20 and I can't use MFT with my card.

Is it possible to add SAK editor option to MFT?

Thanks!

Offline

#394 2016-03-02 12:52:36

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi twisted.transistor, Hi vlader.

Sorry for not answering earlier. I've just had a look at the MIFARE Type Identification Procedure (page 10+).
As you can see, a change of the SAK from 0x08 to 0x20 is common for Mifare Plus tags when the security level (SL)
is increased from 1 to 3. These tags are used to migrate from an old Mifare Classic environment to a more secure
Mifare Plus environment. Mifare Plus tags with security level 1 are compatible with Mifare Classic. However, with
a security level 3 Mifare Plus tags are now longer compatible with Mifare Classic as they now use stronger crypto.

So I think you have tags of an Mifare Classic deployment that just migrated to Mifare Plus SL 3...
Maybe you find some way to validate this.

Offline

#395 2016-03-02 21:13:23

vlader
Member
Registered: 2016-02-24
Posts: 5

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi, ikarus.

You are completely right. Our cards migrated to newer protocol, we see it via updated SAK.

Probably the procedure of reading new dumps would be more complicated with Mifare Plus data or even impossible.

But I have old dump which I can't write to the same card.

Is it possible not to read SAK before dump writing and let MCT overwrite the whole card using old Mifare 1k dump?

Thanks,
vlader

Offline

#396 2016-03-03 14:05:02

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi vlader,
I'm not sure if I got you right: you got a dump from the time the tag had a SAK of 0x08.
Now you want to write that dump back to the tag that has now a SAK of 0x20?
As far as I know, Mifare Plus tags with a SL of 3 are no longer compatible with Mifare Classic.
This means you can neither read nor write them witn MCT.

Offline

#397 2016-03-03 19:30:26

twisted.transistor
Member
Registered: 2016-02-14
Posts: 4

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

ikarus wrote:

Hi vlader,
I'm not sure if I got you right: you got a dump from the time the tag had a SAK of 0x08.
Now you want to write that dump back to the tag that has now a SAK of 0x20?
As far as I know, Mifare Plus tags with a SL of 3 are no longer compatible with Mifare Classic.
This means you can neither read nor write them witn MCT.

Hi ikarus. I think I got the same problem as vlader.
I have a Mifare Classic tag that had SAK of 0x08, but somehow the SAK was changed and now my Mifare Classic tag has SAK of 0x20.
And what we are looking for is either way to change SAK of the tag back to 0x08, either the way to avoid checking for the SAK (when your application is launched) so we will be able to work with our Mifare Classic tags like we did before.

Offline

#398 2016-03-03 21:55:08

vlader
Member
Registered: 2016-02-24
Posts: 5

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

ikarus wrote:

Hi vlader,
I'm not sure if I got you right: you got a dump from the time the tag had a SAK of 0x08.
Now you want to write that dump back to the tag that has now a SAK of 0x20?
As far as I know, Mifare Plus tags with a SL of 3 are no longer compatible with Mifare Classic.
This means you can neither read nor write them witn MCT.

Hi ikarus,

Everything was described by twisted.transistor.

I'll try to do it once more.

Initially, I have Mifare Classic tag with SAK 0x08. I made a dump from it.

Then, after some time of using this tag I discovered then SAK in my card was suddenly changed to 0x20, the most probably it happened while balance replenishment. I emphasize that the tag is the same and it was never changed.

I hope that SAK changing operation with the same plastic card is reversible.

Now I am asking about possibility to write my old dump to my old Mifare Classic card, where just SAK was changed.

It would be even better if we have possibility to change SAK back or read tag with SAK 0x20 using reading method from SAK 0x08 tags.

Offline

#399 2016-03-04 00:54:45

ikarus
Contributor
Registered: 2012-09-20
Posts: 246
Website

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi twisted.transistor, hi vlader,
how could you be sure if it's still a Mifare Classic tag? Are you sure it was not a Mifare Plus tag in
compatibility mode (SL 1) before? And if not, what caused the change of the SAK?
Do you have other Mifare Classic tags? Do they still show a SAK of 0x08?
Have you checked apps like NFC TagInfo? Do they identify your tag as Mifare Classic?

Only if you are sure that your tag is still a Mifare Classic tag with a wrong SAK (for whatever reasion),
it makes sense to edit MCT in order to ignore the SAK. And even then it might be impossible because
of how Android handels NFC tags.

Changing the the SAK back to 0x08 is not possible for an original Mifare Classic tag. As far as I know
changing the SAK in any way is only possible for tags emulating a Mifare Classic tag (e.g. SmartMX)
or Mifare Plus tags (by changing the SL).

Last edited by ikarus (2016-03-04 00:57:21)

Offline

#400 2016-03-04 08:28:12

vlader
Member
Registered: 2016-02-24
Posts: 5

Re: MCT - An Android NFC-App for reading/writing/analysing/etc. MF Classic

Hi ikarus,

The most probably it  is Mifare Classic card because I've been using it several years.

"how could you be sure if it's still a Mifare Classic tag?" As I wrote above it's too old card.

"Are you sure it was not a Mifare Plus tag in compatibility mode (SL 1) before? " All the other soft shows it exactly.

"And if not, what caused the change of the SAK?" As I wrote in my previous post the most probably changes were made while balance replenishment using my tag.

"Do you have other Mifare Classic tags? " Of course, they where bought at the same time but keep working with your app because I haven't done balance replenishment in a while.

"Do they still show a SAK of 0x08?" Of course.

"Have you checked apps like NFC TagInfo?" Yes, both tags were checked I mean working one and not working one.

Not working one provide just a little: Type A(ISO/IEC 1443 Type A)
                                                      RF techology
                                                      Type A(ISO/IEC 14443 Type A)
                                                      Tag type
                                                       ISO/IEC 14443-4 Smart Card
                                                       SAK 20

Working one provide me following: Type A(ISO/IEC 1443 Type A)
                                                   RF techology
                                                   Type A(ISO/IEC 14443 Type A)
                                                   Tag type
                                                   Mifare Classic 1K
                                                   SAK 08
and a lot of data in different formats and access conditions.

"Only if you are sure that your tag is still a Mifare Classic tag with a wrong SAK (for whatever reasion),
it makes sense to edit MCT in order to ignore the SAK."  - Could you please try with version, which is not checks SAK even custom one?

Thanks!

Offline

Board footer

Powered by FluxBB