Commit graph

169 commits

Author SHA1 Message Date
iceman1001
176d8fe6a6 fix cppchecker warnings 2025-03-24 18:00:06 +01:00
douniwan5788
e24578c2ea Rename Hitag2 functions 2025-03-15 04:24:42 +08:00
iceman1001
1cf98096e6 style 2025-02-21 16:41:05 +01:00
iceman1001
4422101243 fix #2547 - compilation warning error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 2025-02-21 16:33:22 +01:00
Shawn Hoffman
aa286b4a16 fix bigbuf allocators (tracing + malloc) overwriting each other
* BigBuf.c: use s_ prefix for statics
* BigBuf_Clear_ext already calls clear_trace, so remove extra calls
* add some sanity checking of allocator args
* dont compare PDC_RNCR to false
2025-01-24 15:56:45 -08:00
douniwan5788
8b7f34b4d9 refactor: Merge enum hitag_function. read/write has already been differentiated by command 2024-09-22 20:05:25 +08:00
douniwan5788
0ef374e06f fix: lf search hangs 2024-09-21 23:37:55 +08:00
iceman1001
febaa64b4d make all device side HTS messages DBGlevel extended 2024-09-14 22:00:52 +02:00
iceman1001
db1b28f327 rename hts read/write commands to rdbl/wrbl to match rest of the client. added a lf hitag hts reader comamnd, modified the lf search to identify hitag2/s/82xx in the chipset detection 2024-09-14 21:00:42 +02:00
iceman1001
c83a15fd18 clean 2024-09-13 13:37:57 +02:00
douniwan5788
75420482e4 refactor: Move Hitag 1 cmds to protocols.h 2024-08-24 02:15:28 +08:00
douniwan5788
c279f88f13 refactor: Move Hitag 2 cmds to protocols.h 2024-08-23 23:49:47 +08:00
douniwan5788
d15537bbf1 Unified hitag naming style 2024-08-22 02:01:43 +08:00
iceman1001
d9ec99f903 found the bug in a call to hex2binarray() fct which overwrote first 16 bytes of keystream. Fixed loops. Crack2 now generates same data as RFIDLer impl. 2024-05-16 22:49:24 +02:00
iceman1001
5fd4d7e774 fix const param, bitwiseboolean 2024-05-14 14:29:30 +02:00
iceman1001
42f0699c78 style 2024-05-14 10:04:28 +02:00
iceman1001
dee84b5b6f added "lf hitag crack2" to support the second attack vector against Hitag2, based on all work from @kevsecurity Kev Sheldrake in the RFIDler repo. This is WIP, not working at the moment 2024-04-26 15:38:06 +02:00
iceman1001
3f6ea0f0fc style 2024-04-22 16:35:22 +02:00
iceman1001
c8849af5e0 This is the major changes made to the HITAG2 commands. Its heavly based on RFIDLers implementation and its been converted to work with Proxmark3. Special thanks to @kevsecurity for his amazing implementations of the Gone in 360 Seconds paper by Roel, Flavio & Balasch. Thanks to @adamlaurie for his RFIDler project. It wouldnt been doable without it. 2024-04-22 16:20:24 +02:00
iceman1001
4e540053e9 style 2024-04-07 11:38:51 +02:00
iceman1001
7c755e20bc parentheses miss 2024-04-06 18:53:04 +02:00
iceman1001
27735355cd initial text changes 2024-04-06 15:48:41 +02:00
iceman1001
700d558432 move hitag2 crypto parts to the common folder in order to be able to use it on the client side. Some textual and minor adaptations across the bord 2024-03-27 09:32:00 +01:00
iceman1001
2ed69ad8f7 style 2024-02-20 11:14:17 +01:00
Henry Gabryjelski
47ea4d6566 const for hitag2 2023-08-09 00:11:52 -07:00
Philippe Teuwen
173379b999 Rewrote completely cmds & options lf hitag read/dump/wrbl/ta
for more coherence with other pm3 cmds.
Still there remain strange things but it should be a step in the right direction...
2023-07-21 01:08:24 +02:00
0xdanneh
dadaf9cd11 'Fix' writing on hitag2 in password mode
Needs more investigation, but it does solve the issue of write commands not working consistently
2023-05-08 20:48:41 +01:00
iceman1001
6bb301f4da cppcheck fixes for const 2022-01-06 23:07:47 +01:00
Philippe Teuwen
b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
iceman1001
3491157345 cppcheck fixes and other minor stuff 2022-01-03 22:17:40 +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
iceman1001
67d6ba97a5 code style 2021-11-19 00:44:24 +01:00
Łukasz Jurczyk
218a4ba2ec
Added ledcontrol to lf functions 2021-11-18 15:00:54 +01:00
Philippe Teuwen
88308ea727 typos 2021-10-10 01:35:45 +02:00
Philippe Teuwen
6f6a3161a9 Fix typos, applying Fix-spelling-errors.patch from Kali, thanks Sophie!
da550dbec7 (6e9d1bb9c071feb1a5ad25ec24296a3f6751f2d1)
2021-10-04 20:48:55 +02:00
Philippe Teuwen
5b54385347 rename globals 2021-08-21 23:08:26 +02:00
iceman1001
e2ca0a4abd style 2021-06-24 18:47:11 +02:00
iceman1001
b993236be2 send sync signal to clock when reset 2021-06-24 17:20:48 +02:00
Philippe Teuwen
1f27be076b make miscchecks 2021-06-04 21:58:38 +02:00
iceman1001
1317c380f4 revert timings 2021-05-01 18:22:02 +02:00
iceman1001
8ee8bb9098 oldstyle definition 2021-04-17 11:42:11 +02:00
Philippe Teuwen
741cdfc383 typos 2021-04-16 00:21:22 +02:00
iceman1001
27184d7f5b style 2021-04-08 10:44:31 +02:00
iceman1001
753d074c54 WIP 2021-04-05 08:26:46 +02:00
iceman1001
d012a879f2 WIP - hitag sniff, eload, sim 2021-04-04 17:06:48 +02:00
iceman1001
3275decfb0 cppchecker 2021-03-05 10:21:02 +01:00
Philippe Teuwen
c3c59e35cb make style 2020-09-30 14:27:19 +02:00
iceman1001
c8aee45aca adapt hitag2 write 2020-09-28 15:44:44 +02:00
Philippe Teuwen
426c08e221 ht2: avoid sending spurious command after command is finished 2020-09-18 17:04:54 +02:00
Philippe Teuwen
59976aa588 fix ht2 initial command timing 2020-09-18 17:04:54 +02:00