Commit graph

19203 commits

Author SHA1 Message Date
Jean-Michel Picod
8a4a6da287 Add missing file which was gitingore'd 2024-09-20 17:32:18 +02:00
Jean-Michel Picod
9cd810d2ba Update changelog 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
0c116f5517 Add the old bit32 LUA module as a compatiblity shim.
Many exisiting LUA scripts are using bit32 which has been removed
in LUA5.4 in favor of native language support of bitwise operations.
Yet, it's easier to backport this module rather than patching all the
existing LUA scripts because most of them can't be tested.
2024-09-20 17:21:17 +02:00
Jean-Michel Picod
22658097a7 Make the scripting code compatible with LUA 5.4
There's no unsigned anymore, just integers.
2024-09-20 17:21:17 +02:00
Jean-Michel Picod
ad65b41aa7 Update SWIG wrapper 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
d616439618 Funtion unpack moved to table.unpack in LUA 5.3+ 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
0421f5fde5 Update dkjson to a more recent version supporting utf-8 too 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
fa949538ce Ansicolors was a LUA5.1 module. Move it to LUA5.2+ module style. 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
18e3600d95 Update build and CI scripts to LUA 5.4 2024-09-20 17:21:17 +02:00
Jean-Michel Picod
0fcc3107b0 Bump LUA version from 5.2 to 5.4 2024-09-20 17:21:16 +02:00
Iceman
9f3e94c668
Merge pull request #2523 from douniwan5788/doc
doc: update 82xx CON0
2024-09-20 10:59:53 +02:00
Iceman
176a93f77c
Merge pull request #2521 from Antiklesys/master
Updates to iclass legrec and legbrute
2024-09-20 10:59:29 +02:00
Iceman
a0e80658e7
Merge pull request #2520 from douniwan5788/hitags_cleanup
refactor: hitag S cleanup
2024-09-20 10:57:23 +02:00
douniwan5788
ebfb05bff3 doc: update 82xx CON0 2024-09-20 01:24:01 +08:00
Antiklesys
a2a69b1b1b
Update util.h
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-09-19 19:14:23 +08:00
Antiklesys
b92e357307
Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-09-18 23:18:30 +08:00
Antiklesys
47dc372ca7 Update cmdhficlass.c 2024-09-18 23:16:42 +08:00
Antiklesys
90b05106f8 Updates to iclass legrec and legbrute
Streamlined legbrute to remove then need for CSN and validate variables accuracy as per Iceman's suggestions.
Updated legrec (client side only) for the future arm side PR
Fixed variable overflow on the arm side for hex conversions
2024-09-18 18:10:53 +08:00
douniwan5788
3fabc97fdb refactor: hitag S cleanup 2024-09-18 02:43:28 +08:00
Iceman
c7af82f146
Merge pull request #2519 from douniwan5788/reflect
Reflect
2024-09-17 18:52:28 +02:00
douniwan5788
11353044ca refactor: cleanup & optimize reflect* 2024-09-17 23:22:37 +08:00
douniwan5788
eda204bf87 add: reflect48 2024-09-17 23:22:37 +08:00
douniwan5788
f4b01f69a6 fix: reflect64 2024-09-17 23:22:37 +08:00
Iceman
d46b074fbc
Merge pull request #2517 from Antiklesys/master
Updated hf iclass legbrute
2024-09-17 13:18:43 +02:00
Iceman
6149a6f6c8
Merge pull request #2513 from douniwan5788/hitagS_tag
refactor: switch hitagS_tag to union
2024-09-17 13:18:27 +02:00
Antiklesys
43e6d42ce9
Update cmdhficlass.h
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-09-17 17:18:23 +08:00
Antiklesys
ac0260570a
Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-09-17 16:35:52 +08:00
Antiklesys
f24b087c19
Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-09-17 15:46:33 +08:00
Iceman
1b2987c016
Merge pull request #2518 from henrygab/TraceCleanup
Trace cleanup
2024-09-17 09:43:20 +02:00
Antiklesys
3c258827e8 Removed unused multithreading functions and updated to uint64_t 2024-09-17 15:35:23 +08:00
Antiklesys
f70008bd0c Optimized legbrute
Removed multithreading and bottlenecks in favor of sequentially generated keys.
Multithreading can/should be reimplemented but optimized for keyspaces
2024-09-17 15:08:15 +08:00
Henry Gabryjelski
1d4e5e8d90 Fix .PM3 traces that exceed single-byte range
This was done programmatically using python.

The `lf_Keri.pm3` was in range `[-508 .. 491]` (1000 value range).
Each value was divided by four, cast to integer, and then adjusted by +1 (to center the values).
The data plot in the pm3 client now shows discernible changes in amplitude.
The resulting samples are all within range [-128,127].

This final fix allows ALL sample `.pm3` traces to be converted to one-byte-per-sample binary format.
2024-09-16 23:35:03 -07:00
Henry Gabryjelski
1a7267ca53 Fix .PM3 traces that exceed single-byte range
This was done programmatically using python.
Files with a range that fell outside of [-128,127], but which would fit into that range, were offset by the noted amount to ensure the file woul now fit within range [-128,127].  This allows the trace files to be converted to one-byte-per-sample binary format, for example.

offset | filename
-----|-----
`-14` | `lf_Q5_mod-manchester.pm3`
`-14` | `lf_Q5_mod-nrz.pm3`
`-10` | `lf_Q5_mod-fsk1.pm3`
`-15` | `lf_Q5_mod-biphase.pm3`
`-9` | `lf_Q5_mod-fsk2.pm3`
2024-09-16 23:05:15 -07:00
Antiklesys
5bbffafe65 Updated hf iclass legbrute
Update legbrute to perform a double check when finding a potentially valid raw key, to ensure that is indeed the raw key and works against multiple macs (for the same epurse values).
2024-09-17 13:01:39 +08:00
Iceman
f1d638c295
Merge pull request #2516 from Antiklesys/master
Update legbrute for even threads
2024-09-16 20:04:34 +02:00
Iceman
c9b1cc1d95
Merge pull request #2514 from douniwan5788/hexdump
refactor: Optimize Dbhexdump
2024-09-16 19:53:48 +02:00
Iceman
e46024e6a4
Merge pull request #2515 from douniwan5788/doc
doc: fix H7 link
2024-09-16 19:47:28 +02:00
Iceman
c34068bc94
Merge pull request #2512 from douniwan5788/concatbits
refactor: move concatbits() to commonutil
2024-09-16 19:41:17 +02:00
Antiklesys
49524575be Update legbrute for even threads
Updated legbrute to use an even number of threads and display the starting key of every key block. Useful in case the operation needs to be halted and resumed
2024-09-17 01:32:44 +08:00
douniwan5788
1a07ff1c12 refactor: switch hitagS_tag to union 2024-09-17 01:02:32 +08:00
douniwan5788
e5c0007f0b refactor: move concatbits() to commonutil 2024-09-17 01:00:32 +08:00
douniwan5788
0de7864755 refactor: Optimize Dbhexdump 2024-09-17 00:58:12 +08:00
douniwan5788
ce676b2a84 doc: fix H7 link 2024-09-17 00:57:26 +08:00
iceman1001
805dc99b97 lf search - now tries to read out hitag2 data with the paxton key. 2024-09-15 18:19:28 +02:00
Iceman
c9531ae62b
Merge pull request #2510 from douniwan5788/fix_uid
Fix Hitag S get uid
2024-09-15 17:45:48 +02:00
Philippe Teuwen
fbef3c0a21 Should allow reproducible builds 2024-09-15 14:10:08 +02:00
iceman1001
32058894ea style 2024-09-15 13:16:35 +02:00
iceman1001
3ea655c86d text 2024-09-15 11:43:05 +02:00
douniwan5788
ec827887bf fix: keep error msgs until we have proper error codes to diff them on the client side 2024-09-15 12:56:51 +08:00
douniwan5788
e15356ab0e fix: hts_read_uid 2024-09-15 12:56:51 +08:00