Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2016-12-07 14:25:49

Francesco
Contributor
Registered: 2016-12-07
Posts: 2

Read UID of Legic Prime

Hi,

i want to read the UID of a Legic Prime Card (MIM256). The Problem i see, doesn't matter what address i'm sending, i always get the same first 8 bits. Just the last 4 vary.

Setup Phase:
Sending Rand: 1 000 000 (ALL Lowest bit first)
Receive: 100110 ^(from KeySteamGenerator) 001000 = d1
Sending: 6 bit Acknowledgment 100111 ^(from KeyStream)011011 = 111100

Now my command is 1 0000 0000 which should mean read byte 00 (first one from UID)
But i get for the first 8 bits the same answer doesn't matter what address i'm sending..

My read command is again x-ored with values from the KeySteamGenerator

Any ideas or is tehre any mistake? smile

Offline

#2 2016-12-15 11:20:26

mosci
Contributor
Registered: 2016-01-09
Posts: 94
Website

Re: Read UID of Legic Prime

unfortunately I'm not that competent to support here now ... but I would if I could ;-)
- I do have a proxmark3
- and a reader with a SM-4500 chip (so-called 'official reader')
- and plenty of MIM256 Tags
but I do have also a very very small knowledge about C programming.

if everything is correct (timing and rand)
sending a '1 0000 0000' should result in a 12 bit long answer ... 8 bit => uid-byte0 +4 bit transport-crc
sending a '1 1000 0000' should result in 12 bit ... 8 bit => uid-byte1 + 4 bit transport-crc
... and so on
so your 'vary' nibble should be the transport-crc, which differs because of the difference in the address.
but even if you always get the same answer ... is this first uid-byte correct?
then, this could maybe be a lead to a timing problem for the request of the second uid-byte?!

Offline

#3 2016-12-15 11:47:46

iceman
Administrator
Registered: 2013-04-25
Posts: 9,491
Website

Re: Read UID of Legic Prime

Or you could use my fork,  I added a "hf legic reader" command.
You can look on in armsrc/legic  for details how its done.

Offline

Board footer

Powered by FluxBB