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

Hitag2 Support #1534

Open
eben80 opened this issue Aug 4, 2022 · 9 comments
Open

Hitag2 Support #1534

eben80 opened this issue Aug 4, 2022 · 9 comments
Assignees
Labels
Feature Request New feature or user-story you wanna add to flipper RFID 125kHz 125, 134 kHz RFID

Comments

@eben80
Copy link

eben80 commented Aug 4, 2022

Description of the feature you're suggesting.

Would it be possible to support Hitag2 tags under the 125kHz RFID function?

I'm not sure if the code in this project would be of any help.

Anything else?

No response

@eben80 eben80 added the Feature Request New feature or user-story you wanna add to flipper label Aug 4, 2022
@csBlueChip
Copy link

If you are referring to cracking HiTag2 - it is computationally very expensive to crack - and certainly not in the (realistic) remit of a FZ.
Kev Sheldrake did a talk on this at 44con 2017 https://www.youtube.com/watch?v=abx1hQDCKyg&ab_channel=44CONInformationSecurityConference

However, I don't see why you couldn't use a FZ to collect the data for offline attacks.

@skotopes skotopes added the RFID 125kHz 125, 134 kHz RFID label Sep 6, 2022
@COssfeld
Copy link

COssfeld commented Sep 6, 2022

@csBlueChip I don't know if HITAG 2 uses the same system as HITAG S but for me it would be enough if flipper would support reading the uid and other data in plain mode without auth and also emulate the uid. If I am rememeber correctly you need an extra IC for auth (Philips Co Processor HT RC130) which surely is not in the FZ.
https://www.nxp.com/docs/en/data-sheet/HTSICH56_48_SDS.pdf

@blackvault88
Copy link

blackvault88 commented May 2, 2023

fyi, I recently finished my developments for an external app which can read & emulate the HITAG 1 cards.
It is supporting both basic & advanced mode, though indeed only plain mode. I could add support for encrypted mode (assuming the user knows the key), but since I can't find any documentation on the encryption method used I cannot implement it.

Since all hitag types are quite similar in nature (meaning they all work with bidirectional cmd & reply modes, vs most other onedirectional LFRFID tags) I believe I could also add support for HITAG 2 and S.
Tricky thing is that I don't have any HITAG 2 or S cards nor readers to test with...

EDIT I do plan to commit my code to the official firmware, though currently looking for advice on how to properly do so (keep it as external unofficial app and publish in the app catalog once that becomes available, or include it as official app in the firmware, or include it in the main LFRFID app)
if anyone has advice on this, please do let me know.
@skotopes ? @DrZlo13 ?

@gsp8181
Copy link
Contributor

gsp8181 commented May 3, 2023

@daandewitte

I have some hitag2 cards so if you send me the app I can have a crack with it and test it against hitag2

@blackvault88
Copy link

hi @gsp8181 ,

afraid it's not that simple :(
there's specific commands to read/write from/to hitag 1 vs hitag 2 vs hitag S.
my app currently includes all commands for hitag 1.

I can give it a go and include the hitag 2 commands as well
although it would be purely based on online datasheets without practical test/finetuning, there's a good chance that it would succeed in retrieving the card serial nr using the timings which I applied for hitag 1.

If I find some time to update, I'll send you the app file ;)

@blackvault88
Copy link

fyi @skotopes @Astrrra @DrZlo13
i'm working on including the hitag support into the main rfid app as part of the existing read & emulate routines.

testing out on my dev first, so you'll likely be seeing a pull request in few days from now.

@blackvault88
Copy link

blackvault88 commented May 10, 2023

fyi, testing on my dev completed and pull request launched

#2658

@gsp8181
as soon as it's merged, I'll have a look into adding the hitag 2 protocol as well ;)

@COssfeld
same applies for Hitag S ;)

@sekwah41
Copy link

sekwah41 commented May 29, 2024

Any news on this? I see the pr has become stale atm in terms of discussion.

@stuiterveer
Copy link

stuiterveer commented Jun 13, 2024

For as far as I understood the cracking/challenge response is a tough subject, but (from an outsider's perspective) it does look like normal password encoding is cleartext and you "just" need to know the password (and sniffing it is relatively easy as well since it's sent cleartext).

So it does look like, even if there are limitations to rolling out Hitag2 support, there's some functionality that's relatively easy to implement. @blackvault88 while I lack the knowledge to help out with the code itself, I can offer help in terms of testing and debugging of the protocol, or even sourcing hardware that might help you. Feel free to reach out to me by email if I can help out. I'd love to see more support for Hitag in general!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or user-story you wanna add to flipper RFID 125kHz 125, 134 kHz RFID
Projects
None yet
Development

No branches or pull requests

9 participants