DarkFlippers / unleashed-firmware

Flipper Zero Unleashed Firmware
https://flipperunleashed.com
GNU General Public License v3.0
17.33k stars 1.44k forks source link

NFC Duplicator #638

Closed yash95bh closed 11 months ago

yash95bh commented 1 year ago

Description of the feature you're suggesting.

THIS IS A GENUINE AND HUMBLE REQUEST TO ADD THIS FEATURE

Just like icopy xs has a feature to write duplicate cards, Flipper should also have one. Even though RFID can be done, it'd be great to duplicate NFC cards as well.

The feature should enable the user to copy all the data, check the hex codes and write it on a blank card and is not limited to writing only to magic cards.

Ex:: Since i work in hotel, we use Onity key card system. I read a card > save the info and the UID as well> write it on a blank onity card> the new duplicate card opens the lock as well.

Anything else?

No response

UrSuLa360 commented 11 months ago

If you can read the full card with the NFC app then save it and try NFC Magic for writing in magic cards or the NFC app from flipper to write in a standard card.

You can modify the data using the flipper mobile app.

https://docs.flipper.net/nfc/read https://docs.flipper.net/nfc/magic-cards

yash95bh commented 11 months ago
  1. It doesn't read the full card and stops at sector 15/16 and keys 30/32
  2. There's no option in NFC app to write to a standard card.
  3. The saved card doesn't emulate and open the locks as well. No matter which card I read, it doesn't unlock anything anymore.

On Thu, Nov 2, 2023 at 2:53 AM UrSuLa360 @.***> wrote:

If you can read the full card with the NFC app then save it and try NFC Magic for writing in magic cards or the NFC app from flipper to write in a standard card.

You can modify the data using the flipper mobile app.

https://docs.flipper.net/nfc/read http://url https://docs.flipper.net/nfc/magic-cards http://url

— Reply to this email directly, view it on GitHub https://github.com/DarkFlippers/unleashed-firmware/issues/638#issuecomment-1789205715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFLSWI725IT2QDEMOGIBTLYCJWARAVCNFSM6AAAAAA6KX7TZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGIYDKNZRGU . You are receiving this because you authored the thread.Message ID: @.***>

berkgercek commented 11 months ago

The reason your card stops at 15/16 is because the keys in the last sector are not in the built-in dict of factory keys. This means a brute force attack or key sniffing is necessary to obtain the final key. This applies to most Mifare Classic cards and will not allow 1-step emulation, not to mention writing.

Even the iCopy will require you to sniff that extra key, or use a laptop/PC to brute force it. If you sniff the reader with the flipper it should fully unlock.

yash95bh commented 11 months ago

Okay. Let me give that a shot.

How do I write the saved on a standard classic mifare 1K ? ( and not on the magic card)

On Thu, 2 Nov 2023 at 5:34 PM, Berk Gercek @.***> wrote:

The reason your card stops at 15/16 is because the keys in the last sector are not in the built-in dict of factory keys. This means a brute force attack or key sniffing is necessary to obtain the final key. This applies to most Mifare Classic cards and will not allow 1-step emulation, not to mention writing.

Even the iCopy will require you to sniff that extra key, or use a laptop/PC to brute force it. If you sniff the reader with the flipper it should fully unlock.

— Reply to this email directly, view it on GitHub https://github.com/DarkFlippers/unleashed-firmware/issues/638#issuecomment-1790603869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFLSWP5WPVTVSDNCSJWY3DYCOD3LAVCNFSM6AAAAAA6KX7TZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQGYYDGOBWHE . You are receiving this because you authored the thread.Message ID: @.***>

yash95bh commented 11 months ago

Hi,

How do I write in a standard card from the NFC app? There is no option to do so. It only shows to write the details on the magic card and not otherwise.

Regards.

On Thu, Nov 2, 2023 at 2:53 AM UrSuLa360 @.***> wrote:

If you can read the full card with the NFC app then save it and try NFC Magic for writing in magic cards or the NFC app from flipper to write in a standard card.

You can modify the data using the flipper mobile app.

https://docs.flipper.net/nfc/read http://url https://docs.flipper.net/nfc/magic-cards http://url

— Reply to this email directly, view it on GitHub https://github.com/DarkFlippers/unleashed-firmware/issues/638#issuecomment-1789205715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFLSWI725IT2QDEMOGIBTLYCJWARAVCNFSM6AAAAAA6KX7TZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGIYDKNZRGU . You are receiving this because you authored the thread.Message ID: @.***>

berkgercek commented 11 months ago

In short you cannot. The UID field of normal cards is not writable, and as the UID forms a key component of the card you cannot duplicate arbitrary 1K classic cards onto other standard cards. Only magic cards with a writable UID.

xMasterX commented 11 months ago

Use magic cards gen1 with NFC Magic app that can be found in Apps->NFC There is no "blank" cards, UID is written from the factory on regular cards Get missing keys using detect reader and flipper's mobile app with mfkey32 in it