Commit Graph
100 Commits
Author SHA1 Message Date
Antiklesys 7c1fa4de4b Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-05-11 14:07:05 +08:00
Antiklesys f73ec7275c Fix formatting in command help text
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-05-11 14:05:57 +08:00
Antiklesys 3a293cb98c Update CHANGELOG.md 2026-05-11 13:58:16 +08:00
Antiklesys abe54994d2 Implemented SC operations 2026-05-11 13:54:49 +08:00
Antiklesys b269b83a83 Merge branch 'RfidResearchGroup:master' into master 2026-05-11 13:09:34 +08:00
Antiklesys d5d00bce0a smartcard-i2c-fixes
## armsrc: smartcard / I2C correctness + SAM compatibility fixes

A focused pass over `armsrc/i2c.{c,h}` and `armsrc/i2c_direct.c` addressing correctness bugs (NULL deref on alloc failure, unbounded recursion, write-failure silently falling through to read), and removing two long-standing SAM-compatibility blockers (`SmartCardSetBaud` was a stub; float in firmware hot path).

### Fixed

- **`SmartCardRaw`: BigBuf_calloc result was unchecked.** NULL deref on memory pressure crashed the firmware. Now bails with `PM3_EMALLOC` before touching `resp[]`.
- **`SmartCardRaw`: `I2C_BufferWrite` failure was only acted on at `dbglevel > 3`.** Lower debug levels silently fell through to `sc_rx_bytes()` reading from a card we never wrote to. The `reply_ng` / `goto OUT` path now runs on any write failure; the `Dbprintf` is the only thing gated on dbglevel.
- **`SmartCardRaw`: replaced float division** `(p->wait_delay * 1000) / 3.07` with integer math via `uint64_t`. Avoids pulling `__aeabi_fdiv` into the ARM image and removes overflow at large `wait_delay` values: `wait = (ms * 100000 + 153) / 307`.
- **`SmartCardUpgrade`: BigBuf_calloc result was unchecked.** Now bails with `PM3_EMALLOC`. Renamed local `verfiydata` typo to `verifydata`. Failure messages now include the offset where the upgrade aborted (`Writing failed at offset 0x%04X` instead of `Writing failed`).
- **`I2C_BufferRead`: rejected `len == 0` but accepted `len == 1`**, which cannot represent the SIM module's 2-byte BE length header (returned -1 cast through int16_t). Tightened to `len < 2`.
- **`WaitSCL_L_timeout`: `return (delay == 0)` was dead code** — post-decrement underflows `delay` to `UINT32_MAX` after the loop, so the expression was always false. Replaced with explicit `return false` and corrected the comment that claimed an 1800 ms cap (actual cap is 1200 ms).
- **`i2c.h`: SIM_WAIT_DELAY comment was wrong** — `150000 * 3.07us = 460 ms`, not 270 ms. Updated comment to match the actual value; constant unchanged.
- **`SmartCardDirectSend`: BigBuf_calloc result for `resp[]` was unchecked.** The next `resp[0] = prepend` would NULL-deref on alloc failure. Now bails.
- **`SmartCardDirectSend`: GET RESPONSE (61xx) chain recursed without bound**, allocating a fresh `smart_card_raw_t` from BigBuf each round. A misbehaving card returning 61xx every time would wedge the device. Added `depth` parameter capped at `SC_DIRECT_MAX_DEPTH` (8); both call sites updated. The GET RESPONSE inner allocation is also now NULL-checked.
- **`SmartCardDirectSend`: same write-failure-silent fix** as `SmartCardRaw`.
- **`SmartCardDirectSend`: same float → integer-math conversion** as `SmartCardRaw`.

### Added

- **`SmartCardSetBaud` is now functional.** Was an empty stub (wired through `pm3_cmd.h` / `appmain.c` dispatch but did nothing). Now sends `I2C_DEVICE_CMD_SETBAUD` (0x04) to the SIM module's main address.

### Notes for follow-up

- `SmartCardSetBaud` is now functional on the firmware side, but no client command exposes it — `client/src/cmdsmartcard.c` has no `setbaud` subcommand. A separate change can wire `CMD_SMART_SETBAUD` into the client if needed; leaving it out of this patch keeps it firmware-only and safe to backport.
- The proxmark3 SIM module's stock asm firmware (`sim013`) silently drops `CMD_SETBAUD`. gentilkiwi's `sim_c` v4.50+ also currently dispatches it to a no-op. Full PPS follow-through requires a SIM-firmware-side patch in addition to this commit.
- Mid-byte SCL stretch timeouts in `I2C_SendByte` / `I2C_ReadByte` are still swallowed (return void / -1, both ignored at most callers). Fixing this requires changing those signatures and verifying every caller — out of scope here, merits its own PR.
2026-05-10 14:35:16 +08:00
Antiklesys bf8c2faf6e Update cipher_bs_avx512.c
Updated comments
2026-04-22 16:34:10 +08:00
Antiklesys bf27cb673c Update cipher_bs_avx512.c
Pushing a potential fix for https://github.com/RfidResearchGroup/proxmark3/issues/3250

Use the masked variant with an explicit zero source. _mm512_maskz_andnot_epi32(0xFFFF, a, b) is semantically identical to _mm512_andnot_si512(a, b) but goes through a different code path that takes a proper src argument instead of calling _mm512_undefined_epi32(). No uninitialized read, no warning, single instruction.
It compiles to the exact same single vpandnd instruction as _mm512_andnot_si512. The all-ones mask is resolved at compile time and folded away — the encoder just emits the unmasked form. Zero cycle difference, zero code-size difference.
2026-04-21 15:06:12 +08:00
Antiklesys d327d1c51e Added Claude.md to gitignore 2026-04-20 12:53:02 +08:00
Antiklesys ca4d161e06 Removed deprecated extension
Removed deprecated extension recommendation.
Updated version is already in ms-vscode.cpptools
2026-04-20 12:44:59 +08:00
Antiklesys 9a46fd7301 Update hf iclass legbrute progress counter
Freeing up additional cpu cycles and increasing speed by reducing print statement frequency.
2026-04-19 21:05:27 +08:00
Antiklesys 5f08a3073a Update hf iclass encode to accept -k and not just --ki 2026-04-17 16:43:30 +08:00
Antiklesys 0ffe244a6b Fix for circular buffer error during hf iclass sim
Issue origin:
Commit 6b7665ed5 "Added live fc/cn update to hf iclass tagsim" added a data_available() poll inside the per-byte DMA loop of GetIso15693CommandFromReader so the ARM could drop out of RF-listen and process live emulator updates.

Before that commit, that tight loop had no USB poll at all — only gotFrame / BUTTON_PRESS / WDT_HIT. Verified via git show 6b7665ed5^:armsrc/iso15693.c.

Why it shows up on sim -t 3/6/7: those are the FULL sim modes that share do_iclass_simulation. Between reader commands the decoder sits in STATE_READER_UNSYNCD, so the gated poll at iso15693.c:1570-1575 fires every byte (reading UDP peripheral registers). With DMA filling at ~1 byte / ~19 µs, the added USB register reads plus jitter occasionally push the CPU past the 90% lag threshold → behindBy 461 with DMA_BUFFER_SIZE=512.

Commit fb8f94fa2 narrowed the gate to UNSYNCD to stop mid-frame exits, but the per-byte poll itself is still what's new on that path.

Fix:

New mode constant in include/iclass_cmd.h:

#define ICLASS_SIM_MODE_FULL_LIVE  8  // FULL + allow USB interrupt for live emul updates
Treat it identically to ICLASS_SIM_MODE_FULL everywhere except for the poll gate.

Add a flag param to GetIso15693CommandFromReader — e.g. bool allow_usb_interrupt in iso15693.c:1495 and iso15693.h:42. Wrap the poll:

if (allow_usb_interrupt &&
    (dr->state == STATE_READER_UNSYNCD ||
     dr->state == STATE_READER_AWAIT_1ST_FALLING_EDGE_OF_SOF) &&
     data_available()) { ... }
Pass true only for live mode in do_iclass_simulation iclass.c:502:

bool live = (simulationMode == ICLASS_SIM_MODE_FULL_LIVE);
len = GetIso15693CommandFromReader(receivedCmd, MAX_FRAME_SIZE, &reader_eof_time, live);
The len == -2 drain block stays but becomes dead code for non-live modes (never returns -2).

Client side: cmdhficlass.c:1687 (CmdHFiClassTagSim) sends ICLASS_SIM_MODE_FULL_LIVE. CmdHFiClassSim -t 3/6/7 keeps sending ICLASS_SIM_MODE_FULL / _GLITCH / _GLITCH_KEY.

Other callers (iso15693.c:2270, iclass.c:1121 = reader-attack sim) pass false.

Result:

hf iclass sim -t 3/6/7 → byte-inner loop is back to its pre-tagsim shape → no blow-buffer abort.
hf iclass tagsim → keeps live update ability; still has the overhead, but that's the trade-off the feature needs.
2026-04-17 03:00:14 +08:00
Antiklesys fa5318fe59 Fix to improve/fix circular buffer behavior/issues 2026-04-16 15:42:28 +08:00
Antiklesys baa69786bb Update iclass_legrec_legbrute_key_recovery.md 2026-04-15 11:48:17 +08:00
Antiklesys 4319268e1b Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-04-15 11:19:02 +08:00
Antiklesys d92c9e06e9 Update cmdhficlass.c 2026-04-15 11:18:47 +08:00
Antiklesys f1e1e609c6 Changelog update
Updated changelog

Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-04-15 03:34:39 +08:00
Antiklesys cea87a128f Update cipher_bs_dispatch.c 2026-04-15 01:29:33 +08:00
Antiklesys 42d7edfd0e Update CHANGELOG.md 2026-04-15 01:15:24 +08:00
Antiklesys 8d6e474a75 hf iclass legbrute speed improvements #1
Imported updates from legbrute hashcat modules to speed up hf iclass legbrute

1. Bitslicing — biggest win (~32×)
Kernel stores each cipher register (l, r, b, t) as 32 parallel 1-bit lanes in u32s (m64000_a3-pure.cl:147-201, bs_iclass_tick) and computes 32 MACs per tick. The CPU doMAC_brute does 1 at a time. A 64-bit bitslice port would give ~64× per core; AVX2 gets 256×. This is the single largest speedup lever.

2. Early-reject after 8 output ticks
In m64000_sxx (m64000_a3-pure.cl:534-535) the kernel breaks out as soon as the first MAC byte can't match. doMAC_brute always produces the full 32 output bits before memcmp. Comparing byte-by-byte as bits are produced saves ~3× on the output phase since 255/256 keys fail after byte 0.

3. Pre-expanded y_ccnr bit array
Kernel expands the 96 input bits into a flat array once (m64000_a3-pure.cl:239-247) and reuses it for every candidate. suc_bytes in cipher.c:181 re-does b >>= 1 shifts for every key. Pre-expanding lets the inner loop be branch-free and vectorizable.

4. Widen lanes to 256/512 via AVX2/AVX-512. The bitslice code is written against a single uint64_t lane type — swapping for __m256i/__m512i (or an abstracted bs_word_t) gives 4×/8× throughput on hosts that support it, with scalar u64 fallback on ARM/older x86. NEON gives 2× for ARM.
2026-04-15 01:09:19 +08:00
Antiklesys d331e57c78 hf secc crypto bug fixes 2026-04-12 03:16:41 +08:00
Antiklesys 4382750688 Update hidconfig_sample.json
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-04-08 16:24:58 +08:00
Antiklesys 796ec85a6f Improved secc
Improved hf secc to use default apdu reply from the json file and not the hardcoded one (used as fallback now).
Removed old hardcoded functions no longer in use.
2026-04-08 16:23:50 +08:00
Antiklesys 21de0c211c Improved crypto on secc
Improved crypto on secc
2026-04-07 09:40:01 +08:00
Antiklesys 3bfc645a0a Added hf secc info command
Added `hf secc info` command to retrieve the Card Recognition Template
2026-04-06 18:43:30 +08:00
Antiklesys 459c812e29 Update iso15693.c 2026-04-06 15:23:42 +08:00
Antiklesys fb8f94fa25 Fixed simulation bug
The data_available() check in iso15693.c:1574 fires at any point during the DMA receive loop — including mid-frame while the reader is actively transmitting. When it fires during a CHECK response or during UPDATE transmission, the decoder exits early with -2, iclass.c drains the USB queue and continues — dropping the frame entirely. The reader times out waiting for a response, and restarts from READCHECK.

The fix is minimal: gate the data_available() check on the decoder being in STATE_READER_UNSYNCD (i.e., between frames, before SOF detection). Once SOF starts being received, the state transitions away from UNSYNCD and the check won't fire mid-frame.
2026-04-06 15:06:09 +08:00
Antiklesys efa5176638 Merge branch 'RfidResearchGroup:master' into master 2026-04-06 12:37:15 +08:00
Antiklesys 41295e507d Update README.md 2026-04-06 12:36:57 +08:00
Antiklesys f7a8c3348f Updated doc name 2026-04-06 12:09:16 +08:00
Antiklesys d19f08dbbc Create iclass_key_recovery.md 2026-04-06 12:06:45 +08:00
Antiklesys 2bdbd5a73c Stability update
Benchmarked multiple cards. This is a stable value with the least performance loss.
2026-04-04 02:01:29 +08:00
Antiklesys 51c44843c9 Removed --credit from hf iclass legrec
Option wasn't working and caused unnecessary complexity in the workflow.
2026-04-04 01:07:47 +08:00
Antiklesys b5fe39cf34 Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-04-03 12:17:34 +08:00
Antiklesys 2145bc8869 Update cmdhficlass.c 2026-04-03 12:03:59 +08:00
Antiklesys 51521fdad9 Fixed blacktears bugs 2026-04-03 12:00:56 +08:00
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 e1e689e266 Fixed bug causing retries loop to be skipped
Fixed bug causing retries loop to be skipped
2026-04-03 03:32:00 +08:00
Antiklesys 8380c02a54 Fixed legrec grammar error and checks 2026-04-03 03:22:32 +08:00
Antiklesys a0f89d09e8 Merge branch 'RfidResearchGroup:master' into master 2026-04-03 01:19:39 +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 e4b538841d Update CHANGELOG.md 2026-04-03 00:04:13 +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 5a06c09c4a Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-04-02 23:45:30 +08:00
Antiklesys b749a13a55 Update secc.c 2026-04-02 23:44:59 +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
Antiklesys cb67ac52b7 Merge branch 'RfidResearchGroup:master' into master 2026-04-02 20:56:23 +08:00
Antiklesys 605c9d90c6 Fixed byte typo
Fixed error
2026-04-02 20:55:47 +08: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 195f083dd6 Merge branch 'RfidResearchGroup:master' into master 2026-04-01 17:55:35 +08:00
Antiklesys f16a62eff6 Fixed hf secc sniff -j bug
Fixed bug with hf secc sniff -j for which the proxmark was immediately exiting sniffing mode
2026-04-01 17:55:19 +08:00
Antiklesys dd9c1d2429 Updated secc function names 2026-04-01 17:27:06 +08:00
Antiklesys 59ae6fa458 Fix ATQA flag check for correct condition
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-03-31 09:38:53 +08:00
Antiklesys fd5a058674 Fixed menu spacing
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-03-31 03:04:39 +08:00
Antiklesys 3f9d34769e Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-03-31 00:59:08 +08:00
Antiklesys c01f3cdbc6 Update iso14443a.c 2026-03-31 00:58:40 +08:00
Antiklesys f37e04a58f Fixed typo
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-03-31 00:58:24 +08:00
Antiklesys abc0b2ee2a Update iso14443a.c 2026-03-31 00:08:32 +08:00
Antiklesys cce48aa6e9 Update cmdhf.c 2026-03-30 23:52:56 +08:00
Antiklesys 7b3c60bbea Update iso14443a.h 2026-03-30 23:52:20 +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
Antiklesys 8b7916445a Removed duplicate include 2026-03-30 18:01:43 +08:00
Antiklesys 3ea135daa0 Merge branch 'RfidResearchGroup:master' into master 2026-03-28 12:34:40 +08: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
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
Antiklesys fd09895f0e Update cmdhficlass.c
Updated error description
2026-03-18 16:34:38 +08:00
Antiklesys 3f95d3cc05 Update cmdhficlass.c
Added additional personalization case
2026-03-18 16:32:31 +08:00
Antiklesys 55eb0a8d82 Update cmdhficlass.c
Fixed missing hf iclass blacktears read after @iceman1001 's update of the function from IF to SWITCH in: https://github.com/Antiklesys/proxmark3/commit/3eac1861f6baa0127855edb2323781f7f4bda8ab
2026-03-18 16:20:44 +08:00
Antiklesys d328601dc9 Added --raw support for hf iclass blacktears 2026-03-18 10:08:14 +08:00
Antiklesys f10d52a8a9 Update cmdhficlass.c
Updated logic to support debit key
2026-03-17 22:20:55 +08:00
Antiklesys 2ea01f765e Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2026-03-17 22:09:02 +08:00
Antiklesys e768a1d9ad Update cmdhficlass.c 2026-03-17 22:08:41 +08:00
Antiklesys 8b1922eeb4 Updated command description
Updated description

Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-03-17 22:00:48 +08:00
Antiklesys b91ef4adaf Implemented hf iclass blacktears
Added `hf iclass blacktears` command to perform an automated tearoff of block 1 to set non-secure page mode.
2026-03-17 21:53:16 +08:00
Antiklesys 61d20368af Updated hg iclass legrec
Code cleanup removed unused variables
2026-03-13 12:23:35 +08:00
Antiklesys 0d2741d757 Unused variables code cleanup
Code cleanup of unused payload variables for iclass legrec
2026-03-05 21:38:16 +08:00
Antiklesys 5041fbffa7 Added --creidit option for hf iclass legrec
Added --creidit option for hf iclass legrec
2026-03-05 19:32:52 +08:00
Antiklesys 75c3ce61dd Update iclass.c
Fixed correctly, in the previous fix I'm checking the length of the mac, but the mac is always 4 0 bytes (set from client side as part of the variable size) and the only actual check happens on client side. I'll have to check for the mac value to be != from 00000000
2025-07-05 19:35:41 +08:00
Antiklesys 33c3988a94 Fix broken older functionality
Updated to still maintain older functionality when the macs field is passed
2025-07-05 19:26:22 +08:00
Antiklesys 7ad3f6eaf2 Updated hf iclass wrbl replay
replay behavior to use privilege escalation instead of having to generate specific block/content macs for hf iclass wrbl
2025-07-05 13:25:18 +08:00
Antiklesys f5e61410c6 Fixing style fix
Fixing https://github.com/Antiklesys/proxmark3/commit/24d80f51a9fd88d8125220dc60000e4ac09a9457 where an AND was switched to an OR
2025-07-04 18:37:46 +08:00
Antiklesys f5820999b4 Update iclass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2025-07-04 17:52:43 +08:00
Antiklesys 8e4b9b46a0 Update iclass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2025-07-04 17:48:23 +08:00
Antiklesys 649de11a9a Update iclass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2025-07-04 17:28:01 +08:00
Antiklesys f8bd0b4bae Updated iclass restore to support privilege escalation
Updated hf iclass restore to support privilege escalation to restore card's content using a single AA1 --nr mac value. This allows to write cards the debit key is not known.
2025-07-04 16:47:11 +08:00
Antiklesys 0662c1a9c1 Detecting response sc flag in sam response
Added detection for Secure Channel Flag in Sam's response.
2025-07-01 23:53:54 +08:00
Antiklesys 89465db4b1 Update hf iclass unhash to check lsb
Updated hf iclass unhash to check lsb to be 4x 0 and 4x 1.
If it doesn't respect that format it means it never went through hash0 (as hash0 forces the key format to have 4x LSB set to 1 and 4x LSB set to 0) and likely to be an AES based key.
2025-06-27 10:30:40 +08:00