Commit graph

143 commits

Author SHA1 Message Date
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
iceman1001
8f2b9b9d66 less field timeup before first transmit 2020-09-17 22:17:16 +02:00
Philippe Teuwen
4ed57c7c4d make style 2020-08-13 12:25:04 +02:00
iceman1001
1c7de4a8c3 fix: "lf search" / "lf hitag" - no more stack overflow in hitag reader 2020-06-23 11:13:49 +02:00
Philippe Teuwen
be42995f8a Less fantasy in the LogTrace usages regarding timestamps 2020-05-19 20:19:44 +02:00
Philippe Teuwen
3e7512a5d5 armsrc: clarify static vars vs global vars 2020-05-19 17:05:43 +02:00
Philippe Teuwen
ffdd338dea make style 2020-05-14 01:04:26 +02:00
Philippe Teuwen
1c8c1d82ea fix coverity 267211 & 267206 logically dead code 2020-05-14 01:01:48 +02:00
Philippe Teuwen
026707b960 arm: fix prototypes 2020-05-11 13:48:57 +02:00
iceman1001
4c640805b6 coverity fix: 267208 2020-04-29 16:57:52 +02:00
iceman1001
294d2aa96b cppchecker 2020-03-13 13:52:29 +01:00
iceman1001
57788d5751 whitespace 2020-03-10 17:11:57 +01:00
iceman1001
4bd9f183df fix coverity 267206 2020-03-01 17:11:25 +01:00
iceman1001
802e62285b debug print hitag2 for cleaner client outputs 2020-02-22 13:34:15 +01:00
iceman1001
ebc04ea27e hitag sim changes 2020-01-29 05:14:18 +01:00
iceman1001
fc1cede778 fix: #536 2020-01-22 18:43:20 +01:00
iceman1001
fc2e11a6cd rename function 2020-01-22 13:12:09 +01:00
iceman1001
f04be0c044 chg: hitag write - works 2020-01-20 11:58:22 +01:00
iceman1001
cb67feee19 documentation 2020-01-17 17:06:46 +01:00
iceman1001
56bb7f21dc rename define T0 2020-01-17 14:25:28 +01:00
Philippe Teuwen
091a594063 hitag: more timings 2020-01-16 01:12:34 +01:00
Philippe Teuwen
631c11e22c hitag: use defines 2020-01-16 00:57:21 +01:00
Philippe Teuwen
f2eec56fb7 hitag: cosmetic 2020-01-16 00:49:05 +01:00
Philippe Teuwen
9df6fa8e8e hitag: stop detecting if response header is corrupted 2020-01-16 00:26:39 +01:00
Philippe Teuwen
7a27f5dddb rephrase debug 2020-01-16 00:26:39 +01:00
Philippe Teuwen
870bbd1f77 hitag: comment data dump 2020-01-16 00:26:39 +01:00
Philippe Teuwen
d2fb44710f Abort when Manchester goes wrong rather than outputting wrong values 2020-01-16 00:26:39 +01:00