# :flipperzero\_white: (HOW TO) - Flipper Zero - Write Mifare Classic to a gen1a Implant

**URL:** <https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766>\
**Category:** Lounge\
**Created:** [January 21, 2023, 8:54am UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766 "2023-01-21T08:54:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [January 21, 2023, 8:54am UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/1 "2023-01-21T08:54:26Z")

</div>

## I will break this into 3 parts

- **Part 1** - Read and Save the master including the (N)UID and keys

- **Part 2** - Copy and write the keys 🗝 +(N)UID  
\*Check you are writing to a Magic gen1a  
\*Write the (N)UID + \*Write the keys

- **Part 3** - Confirm & Compare Clone “Checksum” - NON-ESSENTIAL

* * *

## Part 1 - **Read and Save the master + (N)UID**

- READ the card with NFC ( Confirm all keys found and sectors read )

 ![Screenshot-20230121-175405](https://dangerousthings-forum.b-cdn.net/original/3X/a/8/a8c1060fd0fdcaae6ab4947276175597dcc69020.png)

 ![Screenshot-20230121-175707](https://dangerousthings-forum.b-cdn.net/original/3X/e/4/e4ca1d485593dc505dfee7ceaf4ed5d3294a9a31.png)

 ![Screenshot-20230121-175722](https://dangerousthings-forum.b-cdn.net/original/3X/3/7/375eb88c2730788f892d8d7d025ace9fae67d477.png)

### SAVE and NAME

 ![Screenshot-20230121-175737](https://dangerousthings-forum.b-cdn.net/original/3X/9/c/9cc9c52b96b4024e95101a3f3ae7cae40149164d.png)

 ![Screenshot-20230121-175906](https://dangerousthings-forum.b-cdn.net/original/3X/b/c/bc960bc0796e8ff1f58393d7526d11ae1d175994.png)

* * *

## Part 2 - **Copy and write the (N)UID & keys** 🗝

I’LL BREAK THIS INTO ~~3~~ **2** PARTS ~~ALSO~~

- Check you are writing to a Magic gen1a

- Write the (N)UID + **EDIT** + \* Write the keys

* * *

- Check you are writing to a Magic gen1a

_You can skip this step if you already know_  
_FYI,_  
_the [xM1](https://dangerousthings.com/product/xM1/) is compatible_  
_The [FlexM1](https://dngr.us/flexm1) **gen2** IS NOT ( I just use [MCT](https://play.google.com/store/apps/details?id=de.syss.MifareClassicTool&hl=en&gl=US) for writing to mine )_

 ![Screenshot-20230121-183233](https://dangerousthings-forum.b-cdn.net/original/3X/6/b/6b5897a63e81a285ee37905433fcf11b29ed337e.png)

 ![Screenshot-20230121-183242](https://dangerousthings-forum.b-cdn.net/original/3X/a/6/a6f64059bed13ecb98f8e27b4f1782ddf1f94719.png)

 ![Screenshot-20230121-183257](https://dangerousthings-forum.b-cdn.net/original/3X/b/a/ba62ca88bc07ce677d7be8c16041175e85bb70c3.png)

 ![Screenshot-20230121-183306](https://dangerousthings-forum.b-cdn.net/original/3X/9/e/9e64fc99cdfd52ca6f826c29627678612d8910d1.png)

 ![Screenshot-20230121-183306](https://dangerousthings-forum.b-cdn.net/original/3X/1/7/17bbc939660e9990338de45204870e149a02f2e8.png)  
**EDIT**  
If it fails to recognise your chip as a “magic” chip, it wont error out, it will just continue to attempt to read.  
it may still work to write though, see the quote below

> [@Equipter](#):
>
> depending on the ATS it responds with some magics won’t identify themselves properly but will still accept magic writes

ALSO

_There appears to be an error, if you still have the Flipper on the card / implant and press the back OR left arrow, it tries to read again, just remove the flipper and try again, it will work_

- “WRITE Gen1A” to write the (N)UID AND KEYS

 ![Screenshot-20230121-184447](https://dangerousthings-forum.b-cdn.net/original/3X/5/c/5ce28b728b9e12edde1d9b6ba66999518258d081.png)

 ![Screenshot-20230121-184518](https://dangerousthings-forum.b-cdn.net/original/3X/7/d/7ddb071f03eb3fb205e467d5caf15cb4529b3498.png)

 ![Screenshot-20230121-184536](https://dangerousthings-forum.b-cdn.net/original/3X/a/3/a38e250b88ff5fa209bfbfa5e5000cdbd05bf262.png)

 ![Screenshot-20230121-184555](https://dangerousthings-forum.b-cdn.net/original/3X/5/3/53380bf3ac0892902c50413558e510c94b613603.png)

 ![Screenshot-20230121-184603](https://dangerousthings-forum.b-cdn.net/original/3X/5/e/5efdd33335900c1a472e28a3400ffa6a99fdf79e.png)

> **"WRITE TO INITIAL CARD" (THIS STEP IS NOT REQUIRED)"**
>
> - 
> 
> > [@Equipter](#):
> >
> > also your steps are too many “write magic” writes the whole data structure of the nfc file of your choice to the magic card, not just the uid therefore not needing to use write to initial card afterwards
> 
> ![Screenshot-20230121-210252](https://dangerousthings-forum.b-cdn.net/original/3X/0/7/07f4cfa07b160a57902163e2a9364addeb846cad.png)
> 
> ![Screenshot-20230121-210303](https://dangerousthings-forum.b-cdn.net/original/3X/6/f/6f22f9f034a815bf607d44b8ab0d10152c80605c.png)
> 
> ![Screenshot-20230121-210312](https://dangerousthings-forum.b-cdn.net/original/3X/7/b/7bbec48826c20cc24d246c7634f886bbea0a8355.png)
> 
> ![Screenshot-20230121-210331](https://dangerousthings-forum.b-cdn.net/original/3X/3/6/36aeb79216470b6de255d003c04ecc11d4ac88c1.png)
> 
> ![Screenshot-20230121-210440](https://dangerousthings-forum.b-cdn.net/original/3X/4/e/4e7666b5a19e453c99090e015162509ca8e7c394.png)
> 
> ![Screenshot-20230121-212006](https://dangerousthings-forum.b-cdn.net/original/3X/7/f/7f045842474e279f1a080848dd5fdbd832ac8ee0.png)
> 
> ![Screenshot-20230121-212018](https://dangerousthings-forum.b-cdn.net/original/3X/9/f/9fc3e7d1fcd4f7310c5c43b66ddf9b5762aa51b3.png)

* * *

## Part 3 - Confirm & Compare Clone “Checksum” - NON-ESSENTIAL

I used [MCT](https://play.google.com/store/apps/details?id=de.syss.MifareClassicTool&hl=en&gl=US) Diff Tool ( Compare Dumps 💩💩 )

This step was just for my testing, and this write up so you as the reader can see it works.

I wont do this as normal practice

 ![Screenshot_20230121_174537_Finder](https://dangerousthings-forum.b-cdn.net/original/3X/1/9/1993a2a1f0678b6ad280af428512c8e32cf8b7a8.jpeg)

 ![Screenshot_20230121_185747_MIFARE Classic Tool](https://dangerousthings-forum.b-cdn.net/original/3X/3/9/3964763104187adeff836f73ea4fca9d615d0ee4.jpeg)

 ![Screenshot_20230121_185808_MIFARE Classic Tool](https://dangerousthings-forum.b-cdn.net/original/3X/f/1/f119dc75689cf1f61163a097b3e0c9b78f6c72b5.jpeg)

 ![Screenshot_20230121_190205_MIFARE Classic Tool](https://dangerousthings-forum.b-cdn.net/original/3X/a/c/acfd3d099e8ac8e8b8a503b599f375edb84dcec7.jpeg)

 ![Screenshot_20230121_190246_MIFARE Classic Tool](https://dangerousthings-forum.b-cdn.net/original/3X/5/5/55247e8c7a961766008da090a9db03c62705e2b8.jpeg)

# CONGRATULATIONS

### YOU HAVE NOW MADE A COMPLETE CLONE OF A MIFARE CLASSIC WITH YOUR FLIPPER :flipperzero_white:

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [January 21, 2023, 9:37am UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/2 "2023-01-21T09:37:23Z")

</div>

@ANYBODY  
with a Flipper Zero **AND** a [FlexM1](https://dngr.us/flexm1) gen1a

could you do the following and let me know if it works please.

 ![Screenshot_20230121_222844_Chrome](https://dangerousthings-forum.b-cdn.net/original/3X/a/5/a5608c74d98463433886f1acf8d214c695b2880b.jpeg)

Interestingly, I have a number of knockoff unencapsulated [FlexM1](https://dngr.us/flexm1) gen1a

I was surprised that the Flipper did not recognise them as “Magic” , I would like to see if the genuine Dangerous Things version does.

---

<div class="post-metadata">

**Author:** ![Equipter](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/equipter/32/18780_2.png) [@Equipter](https://forum.dangerousthings.com/u/Equipter)\
**Post date:** [January 21, 2023, 12:33pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/3 "2023-01-21T12:33:09Z")

</div>

depending on the ATS it responds with some magics won’t identify themselves properly but will still accept magic writes

---

<div class="post-metadata">

**Author:** ![biospoonie](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/biospoonie/32/23916_2.png) [@biospoonie](https://forum.dangerousthings.com/u/biospoonie)\
**Post date:** [January 21, 2023, 2:49pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/4 "2023-01-21T14:49:21Z")

</div>

This guide is awesome, thank you for putting it together @Pilgrimsmaster - definitely going to take advantage of it whenever the [xMagic](https://dangerousthings.com/product/xmagic/) surfaces and I can get a stabbin’.

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [January 21, 2023, 5:45pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/5 "2023-01-21T17:45:41Z")

</div>

> [@Equipter](#):
>
> depending on the ATS it responds with some magics won’t identify themselves properly but will still accept magic writes

Thats awesome thanks, I’ll add that into the original post.

Is that something that has been identified and will get a fix?

Also will it write to a gen2?

I’ll test it out myself, if you dont answer beforehand

---

<div class="post-metadata">

**Author:** ![Equipter](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/equipter/32/18780_2.png) [@Equipter](https://forum.dangerousthings.com/u/Equipter)\
**Post date:** [January 21, 2023, 6:08pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/6 "2023-01-21T18:08:09Z")

</div>

it can’t be fixed if the chip itself isn’t responding (manufacturing defect in gen1 greymarket chips, happens tho if happening too often it may be a flipper RATS problem)

gen2 it can’t change the uid of yet

also your steps are too many “write magic” writes the whole data structure of the nfc file of your choice to the magic card, not just the uid therefore not needing to use write to initial card afterwards

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [January 21, 2023, 10:18pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/7 "2023-01-21T22:18:24Z")

</div>

> [@Equipter](#):
>
> gen2 it can’t change the uid of yet

YET!!!  
Sounds promising

> [@Equipter](#):
>
> also your steps are too many “write magic” writes the whole data structure of the nfc file of your choice to the magic card

Ah fuck…funnily enough I put that together between PC and phone, and thought I was ready to publish, and had a thought, Damn I forgot the last step, That was an after thought.

I clearly need to stop thinking.

At least it still works, I’ll do a clean up.  
Cheers

---

<div class="post-metadata">

**Author:** ![Equipter](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/equipter/32/18780_2.png) [@Equipter](https://forum.dangerousthings.com/u/Equipter)\
**Post date:** [January 21, 2023, 10:32pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/8 "2023-01-21T22:32:19Z")

</div>

for what it’s worth, documentation like yours is what keeps the hobby alive it shows up on google for the lost and curious to find when trying to clone gen1a with the flipper anyway. good show chap

---

<div class="post-metadata">

**Author:** ![castroed](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@castroed](https://forum.dangerousthings.com/u/castroed)\
**Post date:** [June 7, 2024, 9:16pm UTC](https://forum.dangerousthings.com/t/how-to-flipper-zero-write-mifare-classic-to-a-gen1a-implant/17766/9 "2024-06-07T21:16:01Z")

</div>

Thanks for the information!
