Commit Graph
6552 Commits
Author SHA1 Message Date
Antiklesys 10bd253eab Update elite_crack.c 2026-04-03 11:43:11 +08:00
Antiklesys f9474feec0 Update elite_crack.c
Leveraging doMAC_brute for speed gains.

Precomputation (lines 330-346): Before the loop, sel_brute_idx[i] is set to the brute-byte index j if key_index[i] == bytes_to_recover[j], or 0xFF if that key_sel position is from a already-cracked constant entry. Fixed positions are filled into key_sel once here.

Hot loop (lines 356-361): Replaces:

numbytes_to_recover keytable writes + 8 keytable reads + 8 & 0xFF masks
With: up to numbytes_to_recover (1-3) direct shifts from brute — no keytable touches at all.

Success path (line 386): (brute >> (i * 8)) & 0xFF recovers the exact byte value that was just used for the winning iteration, equivalent to the old keytable[bytes_to_recover[i]] & 0xFF which was the same value that had just been written into the keytable from brute.
2026-04-03 11:38:08 +08:00
Antiklesys 8380c02a54 Fixed legrec grammar error and checks 2026-04-03 03:22:32 +08:00
Antiklesys 6b2e6ab1e8 Huge hf iclass legbrute performance improvements (4x)
Optimized `hf iclass legbrute` throughput: replaced recursive `suc()`/`output()` cipher functions with iterative loops, added 256-entry LUT for the `select()` function eliminating redundant bit arithmetic and halving key lookups per state step, switched successor state to in-place pointer update removing per-call struct copies, added `doMAC_brute()` with byte-wise LSB-first processing and direct output bit packing eliminating all bitstream struct overhead and output reversal calls per key candidate, and replaced per-iteration 64-bit modulo progress check with a countdown counter
2026-04-03 01:18:55 +08:00
Antiklesys 39b5153382 Improved hf iclass legbrute: fixed multithreaded
Improved `hf iclass legbrute`: fixed multithreaded key-range partitioning so threads cover non-overlapping slices of the 40-bit keyspace, added ETA display, keyboard abort with resume hint, `_Atomic` correctness for shared state, `pthread_create` error handling, and thread count capped at available CPUs .
2026-04-02 23:50:41 +08:00
Antiklesys a32b92a0cd Update cmdhfsecc.c 2026-04-02 21:33:15 +08:00
Antiklesys 94a834bf10 Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-04-02 21:02:30 +08:00
Antiklesys 519884aa01 Added secc support to jam custom payload values 2026-04-02 21:02:15 +08:00
iceman1001 489940cf76 helptexts 2026-04-02 19:43:24 +07:00
Iceman 52153d7863 Merge pull request #3199 from aaronjamt/patch-seos-sim-help-text
[hf seos] Improve sim help text
2026-04-02 19:14:24 +07:00
Aaron Tulino (Aaronjamt) 706b942624 [hf seos] Improve sim help text 2026-04-02 02:40:11 -07:00
Antiklesys 3c45263492 Added wildcard support for hf iclass secc sim payloads
Improved hf iclass secc sim adding additional ways to process payloas and responses for when wildcard characters are needed.
2026-04-02 13:05:59 +08:00
Antiklesys dd9c1d2429 Updated secc function names 2026-04-01 17:27:06 +08:00
Iceman f8dd296884 Merge pull request #3107 from kormax/hf-field-timeout
Add 'hf.field.timeout' to prefs
2026-04-01 10:06:28 +07:00
Philippe Teuwen dfb6663990 commands list helper: compute dynamically column width if > 16 2026-03-31 21:21:41 +02:00
kormax 75a49716a9 Update to 'hf.field.timeout_sec' 2026-03-31 17:03:23 +03:00
iceman1001 e5385103dc fix mistake 2026-03-31 18:43:37 +07:00
kormax b443fc7723 Add 'hf.field.timeout' to prefs 2026-03-31 12:02:23 +03:00
Antiklesys fd5a058674 Fixed menu spacing
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-03-31 03:04:39 +08:00
Antiklesys cce48aa6e9 Update cmdhf.c 2026-03-30 23:52:56 +08:00
Antiklesys 5236a13066 SECC Part 2 (fixed) 2026-03-30 23:50:58 +08:00
Antiklesys 128e4006bf SE Conf Card Sim Base
Added `hf secc` to build a base for simulating basic function of iclass SE config cards
2026-03-30 22:58:52 +08:00
iceman1001 b0d365872f sanity check for calloc 2026-03-30 10:33:47 +07:00
iceman1001 474ad6e926 fix potential memory leaks when you start the hardnested and failed to allocate memory. it was all silently handled before, it should now nice and clear end the hardnested attack if it happens. We never had any one run out of available ram running hardnested before..... 2026-03-30 09:40:37 +07:00
iceman1001 42c8699abc simplify 2026-03-30 08:30:31 +07:00
iceman1001 8dbef2d424 null check and the prefered realloc pattern with a temporary variable 2026-03-29 10:21:15 +07:00
iceman1001 ad82c50158 enforce NULL checks after all malloc, calloc, realloc 2026-03-29 10:20:30 +07:00
iceman1001 94720a4a6c cppcheck really like us to use snprinft.... 2026-03-29 09:42:36 +07:00
iceman1001 000d086d59 text 2026-03-29 09:41:46 +07:00
iceman1001 2b5f7e1d0c add missing free 2026-03-29 09:41:23 +07:00
iceman1001 2028a34d5e if SEOS decideds not to follow protocol themselfs... 2026-03-29 09:40:55 +07:00
iceman1001 ae315d1471 guard for last element 2026-03-29 09:40:23 +07:00
iceman1001 5d89180815 text 2026-03-29 09:39:42 +07:00
iceman1001 b54c06a463 fix a missing free, and out of band reading if called with large index which was guarded at the caller before. 2026-03-29 09:39:02 +07:00
iceman1001 d06b96d800 text 2026-03-29 08:32:05 +07:00
Iceman 83779ead7d Merge pull request #3182 from W0rthlessS0ul/master
Added 'hf mfu countertear'
2026-03-28 15:18:18 +07:00
W0rthlessS0ul e0cf9eb125 Added countertear 2026-03-28 10:48:58 +03:00
iceman1001 ee63e0bc2d improve text output in hf iclass tear 2026-03-28 12:17:59 +07:00
Antiklesys 480b58685c Added do not stabilize bits to blacktears 2026-03-28 12:34:11 +08:00
Antiklesys 7d8c9f3f6e iClass SIO Parser
Improved SIO Parsing capabilities based on @iceman1001 black hat talk
2026-03-27 20:32:41 +08:00
Antiklesys 0ac7252215 Update cmdhficlass.c 2026-03-27 11:08:16 +08:00
Antiklesys 6b7665ed59 Added live fc/cn update to hf iclass tagsim
Added live fc/cn update to `hf iclass tagsim` refreshing the csn with each update
2026-03-27 11:01:07 +08:00
Antiklesys 8bb001f2fe Update lookup --live
Updated lookup --live to stop looking in other dictionaries once the key is found
2026-03-27 10:56:32 +08:00
Antiklesys 8bff0f12b5 Added --live option to hf iclass lookup
Added `--live` option to `hf iclass lookup` command to perform a live recovery of the reader's key by simulating a tag and running the lookup command against both standard and elite dictionaries
2026-03-27 00:57:13 +08:00
Antiklesys 77613d666f Update name 2026-03-26 22:34:59 +08:00
Antiklesys 252d085e83 Added hf iclass simtag command to quickly simulate an iclass tag based on facility code and card number 2026-03-26 20:12:48 +08:00
kormax 38d0ba12f9 Move '--aidsearch' matching to regex 2026-03-25 17:15:27 +02:00
Antiklesys a5d014800e Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-03-25 18:22:35 +08:00
Antiklesys 9591c0c670 Added -f parameter to hf iclass sam command to use the sam to parse a card dump 2026-03-25 18:21:44 +08:00
team-orangeBlue 4be1967ab0 Add WTX support in ExchangeRaw14A
For whatever reason there was no support for WTX replies from a tag.

If a tag replied with an APDU frame of 0xF[n] instead of 0x0[n], the client would error out when it should not have done that.

There's now support for that.

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-03-25 10:12:56 +03:00