-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
get_desfire_fileids() fails / mfdes commands dev progress #646
Comments
After the latest code changes to DESFire, the error is now |
Could be that TagInfo authenticates with a default key before. |
I don't think so. The tag has no default key configured in any app. |
try pulling latest and see if it becomes better |
Well... it changed! It seams like it worked on the first app, but not on the second.
|
One step in the right direction then :) |
I think I've sorted the problem. The field must be deselected before each select application id call. I've pushed a commit 61f3ef6. |
Yes! It works now! Thank you so much! Maybe another issue or it is me not understanding this output, but why are having two of the three files no settings?
|
I don't think its a bug. But to be sure, please add the "hf mfdes list" command after running "hf mfdes enum" :) |
Maybe "bug" is the wrong word here. I just don't understand, why there are not settings for each file. Judging by the output of NXP's TagInfo, each file has its settings. The PM3 output shows 3 files, but only one Settings entry. Am I missing something? The tag responses to all 3
|
Need to look up this reposons code |
0xF0 - file not found. |
Well, the IDs 0x01, 0x06 and 0x04 are correct (confirmed by TagInfo). |
The commands no cause further issues. Both,
|
Is this because the leading zeros of AIDs get stripped (at least in the output)? |
Desfire is currently WIP. Please test the latest commit, it should fix several issues. Make sure to also flash your pm3. |
@bkerler Wow! This is great! Thanks for supporting @iceman1001 and this project with your knowledge about DESFire! I've checked the last DESFire commits and a lot of things work great. Some issue however still remain:
|
Can you do a "data setdebugmode 2" and then rerun the command and upload the log please ? |
Sure thing!
|
Found and hopefully fixed the bug in pull request #669 :) |
Yes, I'd like to express my gratitude aswell. |
Yes! The bug is fixed! Thank you. Just another thing I've noticed: |
The key type is only shown for the PICC. There is no command to get the key type for the card level (master keys) for the aids (that's what the datasheet says). |
Hmm I guess there must be such a command, because NXP's TagInfo displays me this information. For each app on the card there is a section with e.g. "2 (3)DES keys" or "14 AES keys". |
some screen shots? When I use NXP TagInfo app for IOS , it doesn't show me anything if its not NDEF.... |
Here are two screenshot of two apps on a card I have laying around. (@iceman1001: Can't imagine being a NFC/RFID nerd without an Android device at hand ;) ) |
I am not an Android lover. With that said, I do actually have an Android layin' around which I somehow need to flash all firmware to get all chinese stuff out of it. |
Yeah, I know. Me neither. But I don't love iOS instead. Just two operating systems with their pros and cons. But Android of cheap Chinese phones != "real" Android. Well, in any case, Android is good tool for NFC, but you know that already ;) And this is going a bit off topic :P So enough of that. |
Ok, thanks for the input. If auth is being used for each aid, it might be possible to detect. At least in the datasheet I couldn't see anything like that. Will have a closer look at that :) |
They seem to use getkeysettings for that. Although it should only work for the picc master key as stated in the datasheet, it seems to work for application master keys as well 8-]. Feature was added in pull request #680. |
seems its hard to know who is right. TagInfo app or the datasheet .... |
@bkerler Thanks again for all the effort! It works now. And other commands seem to work too (read a standard file). Side notice: the command syntax is unusual for the PM3 project. For most commands the arguments don't use the Thanks again you two for making the PM3 a DESFire compatible tool! |
Complete sidenote ... yes and no.. The old style used no dash, only short params. to old mess is still there. Swapping out to cliparser is a job ppl isn't prepared to do. So this is just the normal growing pains for the proxmark client. Living in three worlds with regards to cli parameter parsing :) |
The
get_desfire_fileids()
function as part ofhf mfdes enum
fails. The output just shows "Command unsuccessful". It should work because NXP's TagInfo is sowing the files. I don't think there is something special about the tag I'm using.The text was updated successfully, but these errors were encountered: