Commit Graph
33 Commits
Author SHA1 Message Date
Jakub Kramarz 2163d78126 cmdhfseos: fix invalid memory access in select_DF_verify
The real default key index in CmdHfSeosGDF passed to select_DF_verify was different than documented, resulting in out of bound read.
2025-05-09 00:05:43 +02:00
Jakub Kramarz 0655b6389e cmdhfseos: fix stack buffer overflow in select_DF_verify
increased CMAC buffer size, otherwise memset in aes_cmac writes 16-bytes to 8-byte buffer
2025-05-08 23:52:01 +02:00
iceman1001 1c52bee9a1 text and style 2025-03-21 11:25:31 +01:00
iceman1001 a5dcb4a812 text and style 2025-03-21 08:30:13 +01:00
Eric Betts cfa1bb3a0f Correct oid_hex for hf seos adf and hf seos pacs 2025-03-10 16:42:22 -07:00
iceman1001 98f6b263ff wiegand decode now accepts --new parameter to decode new padding format <len 1byte><pacs bytes> where len denotes number of zeros bits added in the end of the pacs bytes. You will need to shift accordingly. 2025-02-23 23:10:13 +01:00
iceman1001 66b1a48536 style 2025-02-23 21:16:34 +01:00
iceman1001 2fcdea68d1 style and text 2025-02-23 21:08:16 +01:00
iceman1001 cef07dedf6 code style, code clean up of redundant functions, comments, its many minor fixes across the platform. Sorry for not making 20 commits 2025-02-21 15:38:33 +01:00
Philippe Teuwen 53a1d5be01 better fix, thanks @iceman 2025-02-03 16:14:28 +01:00
Philippe Teuwen 80942c8bad Fix ARM GCC14 warning
error: '%02X' directive output may be truncated writing between 2 and 4 bytes into a region of size 3 [-Werror=format-truncation=]
2025-02-03 10:11:34 +01:00
iceman1001 903489f7e5 different key slots 2025-01-27 22:08:17 +01:00
Jakub Kramarz 550af14502 cmdhficlass, cmdhfseos: fixed data argument parsing 2025-01-27 20:57:24 +01:00
Jakub Kramarz 098e3765c0 cmdhfseos: fixed typo 2025-01-27 20:34:52 +01:00
Jakub Kramarz e05c36d4ea cmdhfseos: change from SendCommandMix to SendCommandNG 2025-01-27 20:23:23 +01:00
Jakub Kramarz 5750d47ba3 rename util_hidsio to hidsio 2025-01-27 20:17:44 +01:00
Jakub Kramarz e3e9ca504e cmdhfseos less verbose args parsing 2025-01-27 20:17:44 +01:00
Jakub Kramarz 2ae2388cef util_hdsio: extract getSioMediaTypeInfo 2025-01-27 20:17:43 +01:00
iceman1001 c32ef83812 style 2025-01-14 18:20:55 +01:00
Jakub Kramarz 15a37ef9df seos_sam: ran make style 2025-01-07 00:30:49 +01:00
Jakub Kramarz dd30781608 extract PACS-parsing routines to wiegand_formats.c 2025-01-07 00:15:41 +01:00
Jakub Kramarz 508b63fd2e sam_seos: switch to samCommandGetContentElement2
As PLT-03273 OMNIKEY 5023 Software Developer Guide (https://www.hidglobal.com/documents/omnikey-5023-software-developer-guide) describes a command that returns additional information about SIO object containing PACS data, switching to more verbose one.
2025-01-07 00:15:35 +01:00
Jakub Kramarz 0f7574c982 sam_seos: add option to send arbitrary requests 2025-01-07 00:05:41 +01:00
Jakub Kramarz c08e6c47c8 sam_seos: add suppport for HID SAM communication with SEOS cards, based on bettse/seader project 2025-01-07 00:05:33 +01:00
Adam Jon Foster df2cf0a948 Added SEOS Support
Added generic SEOS Support with the following commands;
- `hf seos info` (slightly improved from the original
- `hf seos pacs` (return the SIO value from the default ADF and default tag)
- `hf seos adf ` (send a get data request to an ADF with a custom tag list)
- `hf seos gdf` (make a request for a GDF based upon a command found in their docs)
- `hf seos managekeys` (manage your own keys used for SEOS commands)

You still need keys to use this commandset, this does not have any keys and is theoretical at this stage until someone tests it with the keys.

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2025-01-07 06:17:37 +08:00
iceman1001 50a1c63470 improved the SEOS annotation, also added a trace file to look at 2024-01-04 19:49:59 +01:00
iceman1001 d3b78e0cf2 swapped to defines 2023-01-14 12:21:48 +01:00
Philippe Teuwen 30aa7aa7d1 Adapting license headers, WIP 2022-01-08 00:40:52 +01:00
iceman1001 05576ba06b cppcheck fixes 2022-01-06 21:00:16 +01:00
iceman1001 0b4d584dd7 cppcheck fixes 2022-01-06 20:49:35 +01:00
Philippe Teuwen 11334f9440 Isolate ISO7816 select & exchange from EMVcore 2021-06-04 21:58:38 +02:00
Philippe Teuwen 323c391f4d nfc commands 2021-05-30 14:23:13 +02:00
iceman1001 6447653c64 hf seos - added the skeleton for future use 2021-05-20 10:07:04 +02:00