Commit Graph

21286 Commits

Author SHA1 Message Date
iceman1001 09ee0ced2c reset fpga after simulation, to see if this stabilizes the device 2026-03-18 10:50:48 +07:00
Iceman b2c04bdc73 Merge pull request #3146 from aaronjamt/patch-oid-maxlen
[hf seos] Increase maximum ADF OID length
2026-03-18 10:07:24 +07:00
Aaron Tulino (Aaronjamt) f8ff76c5ae [hf seos] Move max OID len to preproc define 2026-03-17 19:05:43 -07:00
Aaron Tulino (Aaronjamt) 440d82ae26 [hf seos] Increase maximum ADF OID length
Some newer MOB/ICE OIDs have gotten quite large. Custom OIDs may also be even larger.
2026-03-17 18:45:56 -07:00
Iceman b86c5da0cf Merge pull request #3144 from cindersocket/feat-wiegand
Unify Wiegand/HID input handling and expand coverage
2026-03-18 08:22:38 +07:00
CinderSocket cfb3239e88 Add changelog entry 2026-03-17 16:45:35 -07:00
CinderSocket 6639009681 client: document wiegand layer and improve online tests
Add inline comments throughout wiegand_formatutils and callers to explain
sentinel-bit stripping, HID transport framing, and the normalization contract
between input modes and downstream consumers.

Replace sim-only LF HID online tests with T55xx clone+readback flows and add
a full encode/decode roundtrip harness for hf mf encodehid, including sector
restore/cleanup and an optional --manual flag for external reader verification.
2026-03-17 16:45:14 -07:00
CinderSocket 2c403e157d client: unify wiegand input handling
Extract the reusable Wiegand normalization and packing flow into
wiegand_formatutils and move existing callers onto that shared path.
This rebuilds the feat-wiegand branch as one focused commit against
upstream/master instead of trying to preserve the original commit chain.

Key changes:
- add shared helpers for plain binary, raw HID, new PACS, and formatted
  Wiegand input
- centralize binary rendering used by cmdwiegand and PACS decode output
- update lf hid sim/clone to resolve one input mode through the shared
  Wiegand layer and enforce the LF packed transport limit explicitly
- update hf mf encodehid to accept bin/raw/new/formatted Wiegand input
  through the same normalization path
- preserve legacy raw HID transport behavior while clarifying the
  packed-HID vs LF transport limits in error reporting
- add offline regression coverage for the new PACS decode output and add
  interactive online targets for LF HID Wiegand and MIFARE encodehid

Validation performed:
- make client
- bash -n tools/pm3_tests.sh
- bash -n tools/pm3_online_tests.sh
- ./tools/pm3_online_tests.sh -h
- ./client/proxmark3 -c 'wiegand encode -w H10301 --fc 31 --cn 337'
- ./client/proxmark3 -c 'wiegand encode -w H10301 --fc 31 --cn 337 --new'
- ./client/proxmark3 -c 'wiegand decode --new 068F80A8C0'
2026-03-17 16:45:14 -07:00
Iceman 5b1fb71102 Merge pull request #3145 from kormax/vas-improvements
Add support for reading multiple pass type identifiers in VAS
2026-03-18 06:32:21 +07:00
kormax a4b1c745f0 If VAS mode is not given, choose one based on pass type id count 2026-03-17 22:03:36 +02:00
kormax 3da63fafcd Print VAS OSE information in 'hf vas reader' only if 'verbose' argument is given 2026-03-17 21:55:27 +02:00
Iceman 2bd3ce76fc Merge pull request #3142 from erland-ca/correct-EmGetCmd-return-value
Correct return value type int in EmGetCmd
2026-03-18 02:01:05 +07:00
Iceman a895fcfd5b Merge pull request #3143 from Antiklesys/master
Added `hf iclass blacktears` command
2026-03-18 01:50:32 +07:00
kormax ff052e8ee2 Add support for reading multiple pass type identifiers in VAS 2026-03-17 20:42:39 +02:00
Antiklesys f10d52a8a9 Update cmdhficlass.c
Updated logic to support debit key
2026-03-17 22:20:55 +08:00
Erland Waldreus d281724ca8 Correct return value type int in EmGetCmd
The return false would trigger unwanted behaviour as emulation completed with button pressed.
2026-03-17 15:17:50 +01: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
Iceman 9dee44a1ce Merge pull request #3138 from kormax/felica-node-discovery-adjustments
Skip nodes with PIN attribute when performing node discovery with RequestService in FeliCa
2026-03-17 15:46:12 +07:00
Iceman d285ac4dd9 Merge pull request #3137 from kormax/hint-aid-select-response-matching
Allow to detect which exact app implements AID via matching response data
2026-03-17 15:13:03 +07:00
kormax e52c2f79fc Skip nodes with PIN attribute when performing node discovery with RequestService in FeliCa 2026-03-16 19:45:30 +02:00
kormax 215ac24edb Allow to detect which exact app implements AID via matching response data 2026-03-16 19:32:35 +02:00
Iceman cd7481fa78 Merge pull request #3135 from kormax/aliro-bitmask-print-format
Improve aliro bitmask print format
2026-03-15 16:03:37 +07:00
kormax 5cbae8fc12 Update signaling bitmask print format in Aliro 2026-03-15 11:00:52 +02:00
Iceman 493dfbf928 Merge pull request #3133 from kormax/aliro-vas-maintenance
Aliro & VAS maintenance
2026-03-15 16:00:19 +07:00
kormax ec3b249d30 Remove redundant methods from Aliro/VAS, make private key load helpers universal 2026-03-15 10:08:30 +02:00
Iceman f504af8a04 Merge pull request #3134 from xNovyz/st25tb-tearoff-speedup
hf 14b tearoff: speed up tear-off loop timings
2026-03-15 14:08:31 +07:00
Iceman 9b016d79c1 Merge pull request #3132 from kormax/google-smart-tap
Add `hf gst` commands
2026-03-15 14:06:17 +07:00
xNovyz 6b5eee46af hf 14b tearoff: dramatically speed up tear-off loop timings
- Reinitialize BigBuf memory before FpgaSetupSsc to reset PDC internal buffer pointers
- With properly reset DMA pointers, the field stabilization time can be safely reduced from 5.0ms down to 0.25ms (which matches the timing originally intended by the near-field-chaos patch)
- Further reduced the ST25TB charge capacitor drain wait time from 10ms to an aggressive 0.5ms (the tRST minimum specified in ST25TB datasheet)
2026-03-14 22:44:12 +01:00
kormax 892559ac05 Add tests for zlib support 2026-03-14 22:16:59 +02:00
kormax c8a4314353 Add hf gst commands 2026-03-14 17:34:58 +02:00
Iceman 190f6265c2 Merge pull request #3131 from q0jt/master
Improve felica validation and cleanup handling
2026-03-14 11:06:23 +07:00
Iceman d962e30856 Merge pull request #3124 from xNovyz/hf-14b-tearoff
Hf 14b tearoff
2026-03-14 10:52:32 +07:00
q0jt 661634649a Fix reject responses with invalid CRC 2026-03-14 03:45:22 +09:00
q0jt 08a90b9eba Fix correct status flag error handling in authentication flow 2026-03-14 03:36:57 +09:00
q0jt bf0abf3ee1 Fix avoid double free in CmdHFFelicaReader 2026-03-14 03:22:42 +09:00
Iceman 465e5e6a9c Merge branch 'master' into hf-14b-tearoff
Signed-off-by: Iceman <iceman@iuse.se>
2026-03-13 22:14:20 +07:00
Iceman 147a19eca0 Merge pull request #3129 from kormax/vas-info
Implement 'hf vas info' command
2026-03-13 22:13:26 +07:00
Christian Zanon 5b2e805c73 Update start delay comment
Signed-off-by: Christian Zanon <105173223+xNovyz@users.noreply.github.com>
2026-03-13 13:02:34 +01:00
Christian Zanon b9ddb038b7 Merge branch 'master' into hf-14b-tearoff
Signed-off-by: Christian Zanon <105173223+xNovyz@users.noreply.github.com>
2026-03-13 11:39:06 +01:00
iceman1001 b801cddf13 fix @zerochaos compiler warning 2026-03-13 12:33:47 +07:00
kormax 0ab4cc161b Implement 'hf vas info' command 2026-03-13 07:06:04 +02:00
Iceman 6b3670f95d Merge pull request #3130 from Antiklesys/master
Updated hg iclass legrec
2026-03-13 11:38:41 +07:00
Iceman cfaddb067b Merge pull request #3128 from kormax/android-hce-aid
Refine known AIDs; add Android HCE
2026-03-13 11:38:10 +07:00
Antiklesys 61d20368af Updated hg iclass legrec
Code cleanup removed unused variables
2026-03-13 12:23:35 +08:00
xNovyz 52676ebbd4 style: whitespace fixes 2026-03-11 22:41:21 +01:00
xNovyz 286df8f4eb feat(14b): add interactive hf 14b tearoff command
Add an interactive command for performing tear-off attacks on ST25TB/SRx
monotonic counter blocks. This exploits EEPROM tearing to increment
counters that normally can only be decremented, based on the
near-field-chaos project by SecLabz.

The command sweeps tear-off timing from --start downward in --adj
microsecond steps, automatically consolidates partial writes, verifies
stability across multiple reads, and reports progress in real-time with
color-coded output.

Performance optimizations:
- One-time full iso14443b_setup() at start; subsequent field cycles use
  lightweight tearoff_field_on()/tearoff_field_off() that skip FPGA
  bitstream reload and buffer reallocation
- Periodic CMD_WTX keepalives to prevent USB timeouts during long attacks
- Calls FpgaResetBitstream() on exit to ensure clean FPGA state

Usage: hf 14b tearoff -b <block> -d <target> [--start <us>] [--adj <us>]
2026-03-11 21:43:37 +01:00
kormax 24d1fe79f8 Refine known AIDs; add Android HCE 2026-03-11 20:45:24 +02:00