Skip to content
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

Adding support for UL Gen 2 Badges #345

Merged
merged 2 commits into from
Apr 9, 2016
Merged

Adding support for UL Gen 2 Badges #345

merged 2 commits into from
Apr 9, 2016

Conversation

quantum-x
Copy link
Contributor

Adds support for Magic MF Ultralight Gen 2 tags.
These tags are unlocked with the 'standard' 0x40 / 0x43 commands.

Once unlocked, the badge is written as per normal.

@AdamLaurie
Copy link
Member

Verified - successfully cloned a m/f u/l hotel key. Good job! :)

@AdamLaurie
Copy link
Member

Actually, hold that thought. This patch appears to break writing of older cards...

@quantum-x
Copy link
Contributor Author

@AdamLaurie Older cards as in Gen 1 UL, or vanilla UL?

@AdamLaurie
Copy link
Member

Not sure what generation, but older magic rewriteable U/L card. I have emailed you my output.

 - For cards that aren’t magic, system will refuse to attempt writing
to block 0  / 1

 - Tested on Gen 1 & Gen 2 cards:

Gen 1
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |................|
Done, 16 of 16 pages written (0 pages skipped).

Gen 2
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |................|
Done, 16 of 16 pages written (0 pages skipped).

Non-magic
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |
Unable to unlock card - are you sure the card is magic?
$
@quantum-x
Copy link
Contributor Author

Thanks for the catch!

Tested on Gen 1, Gen 2 and non-magic cards:

Gen 1
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |................|
Done, 16 of 16 pages written (0 pages skipped).

Gen 2
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |................|
Done, 16 of 16 pages written (0 pages skipped).

Non-magic
$ ./nfc-mfultralight w ul-test.dmp --full
NFC device: SCM Micro / SCL3711-NFC&RW opened
Found MIFARE Ultralight card with UID: 044e075ad42184
Writing 16 pages |
Unable to unlock card - are you sure the card is magic?
$

@AdamLaurie
Copy link
Member

Verified now also working with my older magic cards. Thanks!

@neomilium neomilium merged commit e23f8a9 into nfc-tools:master Apr 9, 2016
@neomilium
Copy link
Member

Thanks @quantum-x , @AdamLaurie

@quantum-x quantum-x deleted the ultralight-gen-2 branch April 9, 2016 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants