-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mifare DESFire tag emulation support #287
Conversation
…y, as suggested by @ceres-c
… used to create the tag data
…support disabling common config targets
…re mod development
I want to point out another really nice feature of the code. The DESFire extensions of the Chameleon terminal command set can be used whenever the Chameleon is running DF_SETHDR=ATS xxxxxxxxxx
DF_SETHDR=HardwareVersion xxxx
DF_SETHDR=SoftwareVersion xxxx
DF_SETHDR=BatchNumber xxxxxxxxxx
DF_SETHDR=ProductionDate xxxx These terminal commands should let users completely clone a DESFire tag. For example, to set the ATS bytes reported to emulate a JCOP tag: DF_SETHDR=ATS 0675f7b102 This leads to Sent bits: 26 (7 bits)
Received bits: 03 44
Sent bits: 93 20
Received bits: 88 12 70 a7 4d
Sent bits: 93 70 88 12 70 a7 4d f0 08
Received bits: 04 da 17
Sent bits: 95 20
Received bits: e2 c2 6c b2 fe
Sent bits: 95 70 e2 c2 6c b2 fe 51 09
Received bits: 20 fc 70
Sent bits: e0 50 bc a5
Received bits: 75 f7 b1 02 80
Sent bits: 50 00 57 cd
Found tag with
UID: 1270a7e2c26cb2
ATQA: 4403
SAK: 20
ATS: 75 f7 b1 02 80 A convenient interface that can be used to control the device on the fly in the field is found in the latest versions of my Android logger app for the Chameleon Mini: |
…LIVE with -DLOG_SETTING_GLOBAL set in the Makefile, the active configuration does not respond to LOGMODE=LIVE.
Just to say: many thanks @maxieds for your contribution, that is really a massive improvement of the Chameleon firmware! |
Updates to DESfire support code in #287
Not joking! These NY mafia types attacked me this week for trying to leave. RADIATION POISONING in South Shore Chicago. I will post the uploaded videos publicly on my YouTube channel after I leave... MDS The last post with the commit details above appears to have caused Github to refuse to let me upload/backup my data (see files). This is Elon Musk's way of taking a dime away from the poor (as opposed to flicking it at them). Commit number 314, see here (other pull requests are good too): += emsec/ChameleonMini#314 += emsec/ChameleonMini#287 Free Kevin, FUCK TRUMP!!! See media reports about him in Chicago on Wednesday. Best for the black POPULATION (I do not like the language) since Lincoln (who abolished slavery). Why can't they ride his ass for 'fake news' (WWII Nazi propaganda word). He deserves the prison sentence. += maxieds/ChameleonMiniLiveDebugger#26 Dr. MDS
Overview of this pull request
This pull request is effective culmination of my efforts starting this summer to add DESFire tag emulation support to the stock Chameleon Mini firmware sources. I threw my gray hat in the ring offering to get this to work in #218, and it finally seems to be working well after months of head banging and hacking code. Please see the credits for this project -- It has been in part sponsored through GA Tech where I am still a graduate student.
Modular commits to this branch
I made a point to break down the commit history from my separate repo into those made in this fork. This pull request also absorbs #285 and #286 as requisite components. The following is a summary of what has been added to this branch:
Software
.Doc
folder.Firmware/Chameleon-Mini/Application/DESFire
. Because throwing all of this lengthy source code into a few files in theApplication
directory makes things impossible to read and maintain, I decided it was best to package up all of the innards of this new functionality and keep the necessary multiple files from cluttering up the main directory.Makefile
(see below).Makefile changes (compendia and rationale)
CONFIG_SETTINGS
variable. This makes it very much painless to add new targets for normal, but non-default builds:Makefile
.make desfire
. This configuration requires so much space on the AVR that it really only works as a standalone version.The resulting two builds enabled by the make targets
Concluding notes
Thanks to the testers on discord and to the developer / maintainers that oversee the main sources for all of the help and informative discussions while I was putting this code together! 🐧 💪
For what it's worth, the first testing release of the DESFire firmware mod came together around the night of RBG's sad passing on Rosh Hashanah this year. The images on the releases page of the intermediate repository I have been working in are carefully chosen and important to me. If you have some time, please glance through these tags and reflect.