iceman1001 / ChameleonMini-rebootedGUI

Windows based GUI for Chameleon Mini, the contactless smartcard emulator (NFC/RFID)
GNU General Public License v3.0
293 stars 72 forks source link

Add support for MCT tool 's dump format... #90

Closed iceman1001 closed 5 years ago

iceman1001 commented 5 years ago

The MCT tool has its own format, it would be nice if the GUI could support it aswell

https://github.com/ikarus23/MifareClassicTool/issues/217

@kgamecarter Maybe your magic touch?

kgamecarter commented 5 years ago

Ok MCT is a nice tool for mobile read/write card. I also want to support the MCT format.

iceman1001 commented 5 years ago

@kgamecarter Great addition! Now I only need a MCT dump file to test/verify it with ( @ikarus23 ?)

iceman1001 commented 5 years ago

Converting back and forward looks great. ...may add a refresh button, right-click, or after a convertion to update the file explorer...

iceman1001 commented 5 years ago

whoops.. converting a Ultralight bin dump to EML or MCT .. will try to make a classic formatted....

iceman1001 commented 5 years ago

ok. refresh after converting works now.

kgamecarter commented 5 years ago

MCT is a tool only for classic , so just only classic format.

Eml convertion code is copied from https://github.com/iceman1001/ChameleonMini-rebootedGUI/blob/1a345a9ee73312745cc4908b50945ed7142cd455/ChameleonMiniGUI/UserControls/UcExplorer.cs#L301 Does Ultralight also have EML format? If so. I need a Ultralight EML sample.

iceman1001 commented 5 years ago

:) the UL/NTAG dumps are more complex in one sense. I have bin for it, the json is not done yet... ...if you don't want to add json in pm3 client for hf mfu dump

kgamecarter commented 5 years ago

ok it's 4 byte per line.

iceman1001 commented 5 years ago

...the old dumps was 4byte, but then we added a block of special data in the beginning of the dump file

iceman1001 commented 5 years ago

https://github.com/RfidResearchGroup/proxmark3/blob/master/client/cmdhfmfu.c#L1856

kgamecarter commented 5 years ago

The special data does not seem to match EML format. needs a better format for mfu_dump_t

iceman1001 commented 5 years ago

I know... hence the urge to get JSON for it :)

iceman1001 commented 5 years ago

Alrighty then. hf mfu dump new json dump format in proxmark3 client.

https://pastebin.com/gn5wG3KM

kgamecarter commented 5 years ago

If I download dump from ChameleonMini to JSON. I will miss special data?

iceman1001 commented 5 years ago

as of this moment I don't think the Chameleon uses the special data. It really should though. Better look in the firmware repo. Or @bogiton , do you know ?

As of now, I think it can only load / convert JSON format. not save it.

iceman1001 commented 5 years ago

How about we just set those special fields as empty?

bogiton commented 5 years ago

The only extra thing we save are the counters for UL, right after the memory blocks. I had a check added for this in the DownloadAndSaveDump method.

iceman1001 commented 5 years ago

But do we have access to Version, Signature etc?

bogiton commented 5 years ago

Nope, just the memory block bytes. Signature is hard-coded I think.

kgamecarter commented 5 years ago

The binary dump & json blocks only end of user memory? No include lock bytes and configurations page? img

iceman1001 commented 5 years ago

There are so many different variants of Ultralight / NTAG etc class tags so keeping track of each cards memory layout is hard. Not to mention locking mechanisms. The pm3 client dumps all blocks it can read.

iceman1001 commented 5 years ago

if pm3 client can figure out default pwd/pack, it adds those for known tag formats. Not all formats.