Commit graph

14838 commits

Author SHA1 Message Date
Philippe Teuwen 8a85702662 hitags: don't record SOF in trace and demodulate AC frame 2021-12-30 01:11:12 +01:00
Philippe Teuwen 323f70ff7a Add partial byte annotation in Hitag traces
Example:
[usb] pm3 --> trace load -f traces/lf_HitagS256_dump.trace
[+] loaded 287 bytes from binary file traces/lf_HitagS256_dump.trace
[+] Recorded Activity (TraceLen = 287 bytes)
[?] try `trace list -1 -t ...` to view trace.  Remember the `-1` param
[usb] pm3 --> trace list -1 -t hitags -c
[+] Recorded activity (trace len = 287 bytes)
[=] start = start of start frame end = end of frame. src = source of transfer
[=] Hitag1 / Hitag2 / HitagS - Timings in ETU (8us)

      Start |        End | Src | Data (! denotes parity error)
------------+------------+-----+-----------------------------------------
          0 |          0 | Rdr |18(5)
        117 |        117 | Tag |0f(4) 2c  ab  cc  b3  cf  32  bf [2f]
          0 |          0 | Rdr |00(5) 21  a5  b4  73 [8c]
        117 |        117 | Tag |0f(4) c9  00  00  aa [75]
          0 |          0 | Rdr |0c(4) 00 [ab]
        117 |        117 | Tag |0f(4) 21  a5  b4  73 [53]
          0 |          0 | Rdr |0c(4) 01 [b6]
        117 |        117 | Tag |0f(4) c9  00  00  aa [75]
          0 |          0 | Rdr |0c(4) 02 [91]
        117 |        117 | Tag |0f(4) 48  54  4f  4e [2c]
          0 |          0 | Rdr |0c(4) 03 [8c]
        117 |        117 | Tag |0f(4) 4d  49  4b  52 [1e]
          0 |          0 | Rdr |0c(4) 04 [df]
        117 |        117 | Tag |0f(4) 00  00  00  00 [a6]
          0 |          0 | Rdr |0c(4) 05 [c2]
        117 |        117 | Tag |0f(4) 00  00  00  00 [a6]
          0 |          0 | Rdr |0c(4) 06 [e5]
        117 |        117 | Tag |0f(4) 00  00  00  00 [a6]
          0 |          0 | Rdr |0c(4) 07 [f8]
        117 |        117 | Tag |0f(4) 57  5f  4f  4b [88]
          0 |          0 | Rdr |0c(4) 08 [43]
2021-12-29 23:48:16 +01:00
Philippe Teuwen e5c20fc850 Add HitagS trace
Acquired with:
[usb] pm3 --> lf hitag reader --01
[#] Authenticating using nr,ar pair:
[#] 00 00 00 00 00 00 00 00
[#] Page[ 0]: 73 B4 A5 21
[#] Page[ 1]: AA 00 00 C9
[#] Page[ 2]: 4E 4F 54 48
[#] Page[ 3]: 52 4B 49 4D
[#] Page[ 4]: 00 00 00 00
[#] Page[ 5]: 00 00 00 00
[#] Page[ 6]: 00 00 00 00
[#] Page[ 7]: 4B 4F 5F 57
2021-12-29 17:13:13 +01:00
Philippe Teuwen 62a9f5dcc2 make style 2021-12-29 16:28:50 +01:00
Philippe Teuwen 11884de016 hf mf rdbl: fix example 2021-12-29 16:27:58 +01:00
Philippe Teuwen e68c56b89c update notes on ultimate card: presets 2021-12-29 16:01:24 +01:00
Philippe Teuwen 1c1de3142b update notes on ultimate card 2021-12-29 14:49:42 +01:00
Philippe Teuwen 3a7c114d45 update notes on ultimate card 2021-12-29 13:44:19 +01:00
Matt Moran a1db683673 Add basic structure for hf gallagher 2021-12-29 23:42:06 +13:00
Matt Moran f0b82c6311 Extract gallagher encoding/decoding
Change input parameters to be `arg_u640` so that we can check they are the right lengths (and not have them silently truncated)
2021-12-29 23:10:48 +13:00
Philippe Teuwen 13f7ca0fb3 update notes on ultimate card 2021-12-29 03:24:42 +01:00
Matt Moran ac216b6cbd Add comments for common AIDs 2021-12-29 14:43:54 +13:00
iceman1001 cf7b1d2c17 maur keys 2021-12-28 07:38:40 +01:00
iceman1001 0d38da5de2 make style 2021-12-27 19:36:42 +01:00
iceman1001 e37a1a81ec remove arpa.inet dependency 2021-12-27 19:24:52 +01:00
iceman1001 ff1d66da61 remake style and output 2021-12-27 18:27:38 +01:00
Iceman 2a2f9275cd
Merge pull request #1549 from toucan12/ksx6924
For testing KS X 6924 (South Korea's T-money card)
2021-12-27 17:44:02 +01:00
iceman1001 4493114f4f renamed function and exported it 2021-12-27 17:43:28 +01:00
iceman1001 2837cfa64f make crc8 hitag1 / zx fct 2021-12-27 17:43:00 +01:00
iceman1001 6653bdc2be zx adaptations 2021-12-27 17:42:33 +01:00
iceman1001 3491207890 text 2021-12-27 17:39:56 +01:00
Geonyeob Kim b80097282b
for windows build test 2021-12-27 11:49:52 +09:00
Geonyeob Kim 182973a2ab
fix the translation 2021-12-27 09:51:24 +09:00
Geonyeob Kim be594d8312
update changelog and cmakelists file 2021-12-27 09:30:49 +09:00
Geonyeob Kim cfc8670909
code-style 2021-12-27 01:28:26 +09:00
Geonyeob Kim b19117b6ab
KS X 6924 - Implement the initialize card function 2021-12-27 00:40:01 +09:00
Geonyeob Kim 18258af4f2
Supports KS X 6924 2021-12-27 00:37:26 +09:00
iceman1001 334e80435a added a ndef test URI 2021-12-26 05:57:22 +01:00
iceman1001 1b00c89115 fixing hf 15 dump 2021-12-25 18:51:23 +01:00
iceman1001 69ffcd3185 wrong byte in rats, and adapted two standalone modes 2021-12-25 16:13:42 +01:00
iceman1001 4f952124c5 text 2021-12-25 13:54:56 +01:00
iceman1001 cbf06104bd different rats for DESFire simulation (suggestion from @mosci) 2021-12-25 13:46:00 +01:00
Oleg Moiseenko 7da4a34d7c
Merge pull request #1547 from merlokk/desf_buffer
Desfire dynamic buffer allocation
2021-12-24 20:56:13 +02:00
merlokk b3f2a18ec4 top level read command dynamic memory allocation 2021-12-24 19:14:48 +02:00
iceman1001 49ee82be19 zx now builds after fixing corrent header. 2021-12-24 15:24:32 +01:00
iceman1001 7e43d6b8f4 wrong spelling 2021-12-24 15:12:19 +01:00
iceman1001 d7291aac29 add some capabilities 2021-12-24 15:09:19 +01:00
iceman1001 4ff7514232 fixs 2021-12-24 15:06:38 +01:00
iceman1001 af93809d07 zx structs 2021-12-24 14:55:41 +01:00
iceman1001 376fabd8a1 zx defines 2021-12-24 14:42:55 +01:00
iceman1001 69ea599fee skeleton for ZX8211 2021-12-24 13:32:28 +01:00
iceman1001 7668d99300 maur.. 2021-12-24 13:16:36 +01:00
Iceman bead0c63fc
Merge pull request #1546 from amerinoj/master
fix hf_craftbyte.c emulation card types
2021-12-24 13:09:38 +01:00
merlokk 0d45642383 changelog 2021-12-24 12:30:59 +02:00
merlokk 74fc0a236c dynamic mem encoders/decoders 2021-12-24 12:27:01 +02:00
merlokk 02316e5fc3 DesfireExchangeEx dyn memory 2021-12-24 11:51:23 +02:00
merlokk f827b85cda low level dynamic memory 2021-12-24 11:46:16 +02:00
amerinoj 4cecf039e5
fix hf_craftbyte.c emulation card types 2021-12-23 22:56:54 +01:00
Oleg Moiseenko 9fbf63a8d9
Merge pull request #1545 from merlokk/fix_mfp
fix mifate plus exchange bug
2021-12-23 19:43:58 +02:00
merlokk a622cc5879 fix mifate plus exchange bug 2021-12-23 19:33:44 +02:00