Proxmark3 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.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2013-10-21 09:45:27

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

[Win Client] Tool for analysing a travelling card (mifare classic)

Slowly because of lacking time, the work progresses.

Latest update was identifying the correct crc8 algo and implement it.

Gui needs rework, but it can read and analyze a dumpfile from a swedish travelling card (mifare classic). 

GUI

Offline

#2 2013-10-22 15:14:20

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

The mac algo is said to be:

DES-MAC:   http://www.freesoft.org/CIE/RFC/1510/83.htm

With the UID, prepended to the data that you want to calculate mac for.

IV - said to be 8 zeros.

KEY:
The question is if the is a card-key generated from a masterkey or one of the 64 masterkeys is used as key for the des-mac algo.

Cant find anything in the documentation.

After the mac is calculated either the 16 msb or 64 msb are just as mac.   Apparently the des-mac should generate a 128bit mac but the last 64bits are redundant. 
All in all, there is a lot of false-positives if you want to brute-force it.

I wound if it would be better to simulate traffic with a reader instead of trying to bruteforce.

Offline

#3 2014-04-02 07:28:46

sideout
Member
Registered: 2011-09-27
Posts: 3

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Nice work! Does it work with ACR122 usb? Thanks

Offline

#4 2014-04-02 16:32:28

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

The software takes an Mifare 1k dumpfile  produced from the PM3-client and makes some interpret the data.  So if your ACR122 can make such dumpfile, it will work.

Offline

#5 2016-06-18 10:24:32

jontaa
Contributor
Registered: 2016-06-17
Posts: 12

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Seems I am shaking life into a very old thread.
Due to interest I was just trying to create a parser for same thing. Sifting through the .PDF files accidentilly placed on the web a few years back.
This software you created is interesting. Did you ever release it?
I checked your github but nothing found there about this.

Offline

#6 2016-06-18 13:44:44

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Nop, it never got that far that I felt like sharing it on github

Offline

#7 2016-06-18 14:26:14

jontaa
Contributor
Registered: 2016-06-17
Posts: 12

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Ah okay!
If you would feel like sharing with me I would find it very interesting.
Or your data on how to parse it. This week I asked everyone at work to let me dump their cards, so I have a few samples to try to parse, both monthly tickets and purse.
I am located in Sweden in case you want some data on sniffing the data between the card and reader.

Offline

#8 2016-06-18 16:57:49

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Aha,  then I understand your nickname aswell smile
Sure, you can have a go at the source.  I've all access I want from dumps of the transport system,  but If you are from a different town the data layout may differ somewhat.   Reading RTF pdf's is well, it tells the whole story,  but they are old.
I hear rumours of a danish rfid group who identified the latest version quite well. Sadly I have not contact with them.


It would be nice to finish the application...  Are you into software development?

Offline

#9 2016-06-18 17:46:11

jontaa
Contributor
Registered: 2016-06-17
Posts: 12

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

Hehe : )

I am from Stockholm, so chances are that you already have dumps from here, as its the capital.
I'm afraid I am not in software development, except from coding java in school 15 years ago.
I was thinking I would just write a powershell script to parse the data, but first I need to understand how its organised.
I was thinking that since your application is working I could use it to verify my own parser more easily.
I will get to work with the PDFs

Offline

#10 2016-06-18 19:50:37

iceman
Administrator
Registered: 2013-04-25
Posts: 9,497
Website

Re: [Win Client] Tool for analysing a travelling card (mifare classic)

yes, I have some new SL tags,  Classic 4k tags if I'm not misstaken or plus sl1 ..
there were some other guy on github making a parser for the transportation system aswell.  I think it was a android app. 
His source code is easy to read.

Offline

Board footer

Powered by FluxBB