emsec / ChameleonMini

The ChameleonMini is a versatile contactless smartcard emulator compliant to NFC. The ChameleonMini was developed by https://kasper-oswald.de. The device is available at https://shop.kasper.it. For further information see the Getting Started Page https://rawgit.com/emsec/ChameleonMini/master/Doc/Doxygen/html/_page__getting_started.html or the Wiki tab above.
Other
1.75k stars 391 forks source link

UID can be changed with NFC directly #256

Closed whywilson closed 3 years ago

whywilson commented 4 years ago

After emulating m1 card, block 0 of all 8 slots can be changed with Android NFC hardware. How to make it become ordinary m1 card? Please help.

fptrs commented 4 years ago

Hi @whywilson, if you want to emulate a Mifare Classik 1k card set config=MF_CLASSIK_1K. Next set uid=<4 Byte UID> or upload a card dump in the .mfd format.

whywilson commented 4 years ago

Hi @fptrs , Thank you for your reply. There are no issues for me with emulating a Mifare Classic 1k card. The problem is the block 0 of sector 0 can be modified if I write with another dump. Just like CUID card.

fptrs commented 4 years ago

Hi @whywilson, by default the firmware is compiled with SUPPORT_MF_CLASSIC_MAGIC_MODE. This enables the command set for mifare classic clones which support overwriting the first sector. Try to compile your firmware without this flag.

Akisame-AI commented 4 years ago

Does the revG store the modifications you write directly to its virtual card? I want to emulate a card (mifare classic 4k) that receives a code to sector 1 that is used again when reading it again.

fptrs commented 4 years ago

Yes modifications are stored on the chameleon. You could prevent this by setting it to read only mode.