iceman1001 / ChameleonMini-rebootedGUI

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

Converting dump file for RebootedGUI #98

Closed dealaddict closed 5 years ago

dealaddict commented 5 years ago

I tried MIFARE++ Ultralight but it makes dump files in .txt format and despite playing around with them it wont upload properly. I need to find a way to convert these .txt files into properly supported dump file to use with RebootedGUI.

Any Windows app or Android app that can do this?

Thanks

P.S. Sorry Iceman for using the wrong repo, I have now posted this in the correct Repo.

bogiton commented 5 years ago

Well, actually, you can just transform the txt to bin format using a tool like xxd: xxd -r -p 1502.txt 1502.bin and then try to load that bin into Chameleon.

dealaddict commented 5 years ago

Well, actually, you can just transform the txt to bin format using a tool like xxd:

and then try to load that bin into Chameleon.

I used the command in UnxUtils but it didnt do anything. I might be doing something wrong as I am not too savvy with unix. is there any particular program for Windows that i can do this? @bogiton

bogiton commented 5 years ago

@dealaddict I suppose you could use any hex editor for Windows and just paste the contents of the text inside that. I personally use Frhed (http://frhed.sourceforge.net/), which has an "Import from hexdump" option that does exactly what you need (I just tested it).

dealaddict commented 5 years ago

Thanks @bogiton

So I copy paste the text contents into the hex editor and then should I be able to save the file as.bin or do I paste the contents into the rebooted gui dump management section?

bogiton commented 5 years ago

You can't create a new file from the dump management of the Chameleon GUI. You can only edit existing files. I believe the easiest thing to do is to paste the txt file contents into the hex editor of your choice, save that as a bin file and then upload it to the tag slot you want via the Chameleon GUI.

bogiton commented 5 years ago

@dealaddict Can you share the dump file when you press the download button in Chameleon GUI, after having uploaded your converted hex file? Theoretically, those two should match. What kind of reader are you testing it against? It identifies the UID (with the select_uid command) but it can't read the user memory (where the URL resides)?

dealaddict commented 5 years ago

@bogiton I am using NFC tools PRO and Ultralight++ apk to read and make text files of these. I then converted these text files to the bin file in the editor. Its even messing up my UID now and also not able to emulate the text inside which should be the above exampled URL's from my earlier post.

Please see download link for zip for my original text file @dump + converted bin file + dump file downloaded from Chameleon GUI.

bogiton commented 5 years ago

@dealaddict If you view the files you uploaded with a hex editor/viewer you can see why there is a problem with emulating. You obviously pasted the contents of the text files as text and not as hex byte values. I made two proper bin files for you to test.

dumps.zip

dealaddict commented 5 years ago

Wow @bogiton you sir are a life saver. The two files you gave me works perfect! However I still don't know how to paste them as hex bytes. I tried different ways of pasting in the fred hex editor but my files dont convert as yours. I tried using the paste button as well as ctrl v.

Eventually on one website https://hexed.it I am able to paste it correctly but when I save it it won't work. I suspect it's because the whole text is showing up in one line.

Once I figure out how you are pasting them and saving them exactly i should be able to do it.

LOL sorry for taking so much time of yours I'm still learning the ropes

bogiton commented 5 years ago

I just tried out the https://hexed.it site (cool one) and it seems you can do what you need there as well. Copy the contents of the text file and then in the hexed.it site:

dealaddict commented 5 years ago

I got it working. Thanks for being so patient with me. I owe you a lot for learning these tools. Cheers man! @bogiton

iceman1001 commented 5 years ago

@bogiton create dumps from text.. what different from the eml format was his text dumps?

bogiton commented 5 years ago

@iceman1001 Hmm, I suppose no different at all :P Didn't recall we had that python converter script in the Tools. Well, at least I learned about hexed.it!

iceman1001 commented 5 years ago

yeah, I took them from proxmark project since they was made in python in order to convert easier. Before the GUI was done. However create / edit a single file... but thats what usually is done with a hexeditor do we need to built in that functionality?
So to recapture this issue.

  1. had a text dump from an app. (is actually in EML format)?
  2. could have used the latest GUI for converting it to BIN
  3. upload it to chameleon
  4. download it from chameleon (eml/bin formats)
  5. did @dealaddict want to use with the app again??
bogiton commented 5 years ago

So, as I just checked, you can get it done simply if you rename those txt dumps to .eml and then convert to bin using the Chameleon GUI (dump management tab). It's been a while since I tested the GUI's new features :)

iceman1001 commented 5 years ago

So we have full functionality. Good, time to put to rest.

iceman1001 commented 5 years ago

I guess this issues also was struck by latest fix on uploading MFU / ntag (bin/eml) dumpfiles without header field. Might just test again.