I'm working with a MIFARE DESFire EV1 card and attempting to create files within an application using the Proxmark3 tool. After successfully formatting the card and creating an application, I encounter an error when trying to create a file:
[usb] pm3 --> hf mfdes createfile --fid 01 --size 000020 --amode plain --rrights free --wrights free --rwrights free --chrights key0 [!!] Can't create files at card level.
This suggests that file creation is not permitted at the card level. However, I have ensured that the application is selected and authenticated before attempting file creation.
Here are the steps I've followed:
Format the card:
[usb] pm3 --> hf mfdes formatpicc [+] Desfire format: done!
Create an application:
[usb] pm3 --> hf mfdes createapp --aid 112233 --numkeys 1 --dstalgo AES [+] Desfire application 112233 successfully created
Select and authenticate the application:
[usb] pm3 --> hf mfdes selectapp --aid 112233 [+] Application 0x112233 selected successfully [usb] pm3 --> hf mfdes auth -n 0 -t AES -k <aes_key> --save [+] PICC selected and authenticated successfully
Attempt to create a file:
[usb] pm3 --> hf mfdes createfile --fid 01 --size 000020 --amode plain --rrights free --wrights free --rwrights free --chrights key0 [!!] Can't create files at card level.
Despite these steps, the error persists.
Any guidance or insights from those experienced with MIFARE DESFire EV1 and Proxmark3 would be greatly appreciated.
Thank you in advance for your assistance.