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

When simulate a ISO15693 tag the pageCount could be zero #2411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xueliu
Copy link
Contributor

@xueliu xueliu commented Jun 27, 2024

Recently I got a RFID card. Regarding the info below it is produced by EM Microelectronic-Marmin SA Switzerland. It supports three standards: 14a, 15 and Legic Prime.

[usb] pm3 --> hf search
[-] Searching for ISO14443-A tag...
[+]  UID: XX XX XX XX XX XX XX
[+] ATQA: 00 41
[+]  SAK: 20 [1]
[+] MANUFACTURER: EM Microelectronic-Marin SA Switzerland
[+]    JCOP 31/41
[=] -------------------------- ATS --------------------------
[+] ATS: 05 77 77 81 02 [ 91 00 ]
[=]      05...............  TL    length is 5 bytes
[=]         77............  T0    TA1 is present, TB1 is present, TC1 is present, FSCI is 7 (FSC = 128)
[=]            77.........  TA1   different divisors are supported, DR: [2, 4, 8], DS: [2, 4, 8]
[=]               81......  TB1   SFGI = 1 (SFGT = 8192/fc), FWI = 8 (FWT = 1048576/fc)
[=]                  02...  TC1   NAD is NOT supported, CID is supported

[?] Hint: try `hf mf` commands


[+] Valid ISO 14443-A tag found

[|] Searching for LEGIC tag...
[+]  MCD: XX
[+]  MSN: XX XX XX
[+] TYPE: MIM1024 card (1002 bytes)

[+] Valid LEGIC Prime tag found

[|] Searching for ISO15693 tag...
[+] UID.... XX XX XX XX XX XX XX XX
[+] TYPE... EM Microelectronic-Marin SA Switzerland (Skidata)

[+] Valid ISO 15693 tag found

[?] Hint: try `hf legic` commands

[?] Hint: try `hf 15` commands

I got a message "[=] Tag is empty!", when I dump the card using hf 15 dump. The value pageCount in the dump file is 0.
I got an error message "[-] Tag size error: pagesCount=0, bytesPerPage=4" when I tried to load the dump file into the memory.
But I think pagesCount=0 should be accepted since we have an empty ISO 15693 tag.

Using the attached patch I could load the dump into the memory and simulate the empty iso15693 tag properly.

Signed-off-by: Xue Liu <liuxuenetmail@gmail.com>
Copy link

You are welcome to add an entry to the CHANGELOG.md as well

@xueliu xueliu changed the title For ISO15693 the pageCount coulbe be zero When simulate a ISO15693 tag the pageCount coulbe be zero Jun 27, 2024
@xueliu xueliu changed the title When simulate a ISO15693 tag the pageCount coulbe be zero When simulate a ISO15693 tag the pageCount could be zero Jun 27, 2024
@iceman1001
Copy link
Collaborator

Interesting card with those three technologies. Where did you get that one from?

When it comes to eload an empty dump file I am doubtful. An empty dump file like that is an indication of a failed dump.
The only useful information in the file would be UID.

The preferred way to simulate UID is to use it in the -u parameter. i.e. hf 15 sim -u E011223344556677

@xueliu
Copy link
Contributor Author

xueliu commented Jun 27, 2024

Beside of these three technologies, the card has also an ISO/IEC 7816 compatible chip. Normally the card is used for identity authentication and signing documents. So we call it "PKI card". It comes from a famous German automobile manufacturers.

As you said, "An empty dump file like that is an indication of a failed dump". Are we going to keep this design ? If yes. I will close this ticket. Thanks.

@iceman1001
Copy link
Collaborator

If you can confirm you can simulate with UID and get same results as with your empty dump file patch ?

PKI Card.. I want one, where can I get one?

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

2 participants