Commit Graph
23560 Commits
Author SHA1 Message Date
Iceman bc6d767964 Merge pull request #3724 from r3wretrhy/fix/emv-aidlist-rule-stringop-overflow
emv: fix false -Wstringop-overflow in AID list rule with AVX2
2026-10-24 10:30:51 +07:00
Zhaoqi XuandGrok Bot 56efde54f5 emv: fix false -Wstringop-overflow in AID list rule with AVX2
Building the client with -march=x86-64-v3 (the CentOS/RHEL 10
baseline) fails with gcc 14:

  src/emv/emvcore.c:211:24: error: writing 32 bytes into a region of
  size 22 [-Werror=stringop-overflow=]

gcc vectorizes the dash fill loop in aidlist_rule() into 32-byte
stores and loses the pos + 2 < dstlen bound. The bound was correct.
Compute the dash count with the same limit and fill it with memset,
so there is no vectorized loop store to mis-size. Output is unchanged.

Reported in #3671.

Co-Authored-By: Grok Bot <noreply@users.noreply.github.com>
2026-10-23 19:06:41 -04:00
Iceman 6ce4ec49c1 Merge pull request #3717 from antoniovazquezblanco/emv
HF 14a: Only hint EMV when correct AID is found
2026-10-23 16:06:31 +07:00
Antonio Vázquez Blanco aa55bfca0e HF 14a: Only hint EMV when correct AID is found 2026-10-23 08:25:24 +02:00
Iceman c10930d6e4 Merge pull request #3721 from antoniovazquezblanco/seosinfo
hf seos info: Try to print more information
2026-10-23 11:15:45 +07:00
Iceman f34f09b90f Merge branch 'master' into seosinfo
Signed-off-by: Iceman <iceman@iuse.se>
2026-10-23 11:15:33 +07:00
Iceman de5489f45b Merge pull request #3720 from antoniovazquezblanco/managekeys
mf seos managekeys: Fix table alignment
2026-10-23 11:12:56 +07:00
Iceman 89c6536c5f Merge branch 'master' into managekeys
Signed-off-by: Iceman <iceman@iuse.se>
2026-10-23 11:12:47 +07:00
Iceman 85a751bdb9 Merge pull request #3719 from antoniovazquezblanco/aid
aidlist: Fix uppercase in SEOS, TeslaDAP and LA TAP AIDs
2026-10-23 11:12:09 +07:00
Iceman d66273ea3c Merge branch 'master' into aid
Signed-off-by: Iceman <iceman@iuse.se>
2026-10-23 11:12:00 +07:00
Iceman 8691140de8 Merge pull request #3718 from antoniovazquezblanco/seoskeys
hf seos: Print a better hint on missing keys
2026-10-23 11:09:32 +07:00
Iceman 6adf5a59f2 Merge pull request #3716 from antoniovazquezblanco/seos
HF 14a: Add a SEOS hint
2026-10-23 11:07:26 +07:00
Iceman 9502e1d1b9 Merge pull request #3693 from mfcarroll/fix/psk-fc2-bandpass
lf: fall back to pm3_psk_demod for weak fc/2 PSK when the wave tracke…
2026-10-23 11:06:33 +07:00
Antonio Vázquez Blanco 3a57bb112c hf seos info: Try to print more information 2026-10-21 15:05:53 +02:00
Antonio Vázquez Blanco e582bfe9c5 mf seos managekeys: Fix table alignment 2026-10-21 13:37:22 +02:00
Antonio Vázquez Blanco 798f9f3d28 aidlist: Fix uppercase in SEOS, TeslaDAP and LA TAP AIDs 2026-10-21 13:35:29 +02:00
Antonio Vázquez Blanco 75e4e766ec hf seos: Print a better hint on missing keys 2026-10-21 13:29:14 +02:00
Antonio Vázquez Blanco 748394d0ab HF 14a: Add a SEOS hint 2026-10-21 13:11:44 +02:00
Iceman 0b9597e8f3 Merge pull request #3715 from xianglin1998/fpga-timing-bug
Fixed: FPGA PWM clock timing failed to meet the 400 MHz requirement.
2026-10-20 13:42:49 +07:00
dxl 6bc400db5e Fixed: FPGA PWM clock timing failed to meet the 400 MHz requirement.
Following discussions and debugging with the hardware engineer, the PWM clock frequency was reduced from 400 MHz to 200 MHz. Subsequent testing confirmed that voltage regulation remained largely unaffected.
2026-10-19 23:09:40 +08:00
Iceman 8ab96c9cee Merge pull request #3713 from nip-was-here/fix/mfc-acquisition-budget
Replace mfc pair cap with an acquisition time budget
2026-10-19 21:06:26 +07:00
Iceman 588a6eb32c Merge branch 'master' into fix/mfc-acquisition-budget
Signed-off-by: Iceman <iceman@iuse.se>
2026-10-19 14:45:58 +07:00
Iceman a8fe9f0f50 Merge pull request #3712 from nip-was-here/fix/iso14443a-nonce-completeness
Reject incomplete nested nonces instead of delaying PM5 authentication
2026-10-19 14:44:18 +07:00
nip dbb823c8f8 Revert redundant test
Signed-off-by: nip <182409448+nip-was-here@users.noreply.github.com>
2026-10-19 08:37:55 +04:00
nip f6b768e002 Revert redundant test
Signed-off-by: nip <182409448+nip-was-here@users.noreply.github.com>
2026-10-19 08:35:37 +04:00
Matthew CarrollandClaude Opus 5.5 ac59f2f768 lf: reject fc/2 PSK fallback clocks off nominal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 17:24:28 -07:00
Matthew CarrollandClaude Opus 5.5 13b841e0b1 lf: cache the fc/2 PSK fallback per graph buffer, name its thresholds
The cache is keyed on a hash of the graph buffer contents: the buffer has
many writers and no change counter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 17:24:28 -07:00
nipandOpenAI coding assistant fe176bb533 MIFARE: replace the pair cap with an acquisition time budget
Replace the artificial 68-pair limit with a 2900 ms inter-attempt
budget.
A completed-pair count does not limit failed RF/authentication retries
and unnecessarily restricts fast PM5 collection.

Keep natural buffer capacity, whole-pair packing, client cancellation,
watchdog handling and the existing 3000 ms client response waits.
A blocking attempt can overshoot; persistent errors may yield an empty
nonce reply.

Add actual-handler regression coverage for PM5, RDV4 and GENERIC.

Co-Authored-By: OpenAI coding assistant <noreply@openai.com>
Signed-off-by: nip <182409448+nip-was-here@users.noreply.github.com>
2026-10-18 22:03:43 +04:00
nipandOpenAI coding assistant 4ab9a26b30 MIFARE: reject incomplete encrypted nonce frames
Validate byte length, unfinished bits, collisions and parity-buffer
length before accepting an encrypted nested nonce. Capture decoder
metadata before CHK_TIMEOUT changes it and retry incomplete responses.

Remove the PM5-only 500 us nested-authentication delay and its override.
Preserve other RF timing, the pair cap, cancellation and watchdog calls.
Add native regression coverage without target-key filtering.

Co-Authored-By: OpenAI coding assistant <noreply@openai.com>
Signed-off-by: nip <182409448+nip-was-here@users.noreply.github.com>
2026-10-18 19:48:44 +04:00
Iceman 693ead0803 Merge pull request #3699 from s00se/replace-deprecated-strtok-with-strtok_r
client: replace deprecated strtok calls with strtok_r
2026-10-18 22:43:20 +07:00
s00se a2501dc6d4 Fixed ndef vcard by replacing deprecated strtok with strtok_r
Use 200112L instead of 200809L
2026-10-18 09:02:13 -06:00
Iceman 42c1c7a76e Merge pull request #3676 from dunderhay/desfire-reader-candidate-probe
Add DESFire reader candidate-key probe
2026-10-18 14:40:53 +07:00
Matthew Carroll 1bc32bff15 Merge remote-tracking branch 'upstream/master' into fix/psk-fc2-bandpass
# Conflicts:
#	CHANGELOG.md
2026-10-17 23:47:19 -07:00
Daniel UnderhayandOpenAI Codex 90525502f1 Add DESFire reader candidate-key probe
Add an opt-in simulator probe that checks a reader's AES authentication continuation against a supplied candidate and stops before the final card response. Expose the result through the firmware protocol and etest bench command, and document the evidence and handshake scope.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
2026-10-18 16:03:57 +11:00
Iceman 23ce7229a7 Merge pull request #3711 from xianglin1998/fpga-merge-clear
FPGA: requirements.txt & run.ys translate & license headers
2026-10-18 10:52:03 +07:00
dxl 781020bf9d FPGA: requirements.txt & run.ys translate & license headers 2026-10-18 11:43:56 +08:00
Iceman f3c1195b19 Merge pull request #3708 from nip-was-here/fix/pm5-rtc-snapshot
Fix PM5 RTC snapshot coherence across second rollovers
2026-10-17 15:25:28 +07:00
nipandOpenAI coding assistant 5f54706c18 PM5: read a coherent RTC snapshot in GetTickCount
Read SBS before TIME/DATE to latch a coherent snapshot in synchronous
ERTC mode. A rollover between the previous calendar and subsecond reads
could move the tick count backwards and cause false receive timeouts.

Preserve millisecond conversion and shared delta-helper semantics.
Add actual-source rollover, conversion and register-locking coverage.
Leave acquisition limits and RF timing unchanged.

Co-Authored-By: OpenAI coding assistant <noreply@openai.com>
Signed-off-by: nip <182409448+nip-was-here@users.noreply.github.com>
2026-10-16 20:33:18 +04:00
Iceman e519c1af94 Merge pull request #3707 from TomHarkness/doc/pm5-flipper-usage-update-2
doc: update PM5-FLIPPER-USAGE.md with recent CEP/FAP fixes
2026-10-16 11:31:00 +07:00
Tom HarknessandClaude Sonnet 5 27797fb7d3 doc: update PM5-FLIPPER-USAGE.md with recent CEP/FAP fixes
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-16 08:38:39 +11:00
Iceman d5f7017097 Merge pull request #3704 from 0x6r1an0y/codex/gdm-wipe-safety
fix(mifare): make GDM wipe failure-safe
2026-10-15 11:06:19 +07:00
Iceman e69ac420e1 Merge branch 'master' into codex/gdm-wipe-safety
Signed-off-by: Iceman <iceman@iuse.se>
2026-10-15 11:06:06 +07:00
Iceman 501d8d53f1 Merge pull request #3698 from towelbyte/towelbyte_cotag_sim
Simulate COTAG tag implementation
2026-10-15 11:04:14 +07:00
Iceman 79989e02ad Merge pull request #3706 from phaseloop/niimbot-decoder
Niimbot printer DRM decoder/patcher
2026-10-15 11:02:42 +07:00
Iceman 6476e914a1 Merge pull request #3705 from TomHarkness/fix/cep-dummy-poll-resync
pm5 cep: skip resync on the FAP's 0xFF dummy-poll bytes
2026-10-15 10:51:44 +07:00
歐歪 26e762f80d chore: update command description 2026-10-15 01:33:15 +08:00
towelbyte 294fb3c504 Simulate COTAG tag implementation
New CLI command `lf cotag sim` with COTAG tag simulation implementation.

Detects COTAG reader activation sequence and emulates a COTAG tag.

Signed-off-by: andrej@towelbyte.net
2026-10-14 17:14:56 +02:00
phaseloop a8213a6fd5 Fix example usage
Signed-off-by: phaseloop <90922095+phaseloop@users.noreply.github.com>
2026-10-14 13:36:19 +02:00
phaseloop cbad3db692 Niimbot label tag patcher - initial commit
Signed-off-by: phaseloop <90922095+phaseloop@users.noreply.github.com>
2026-10-14 13:14:37 +02:00
Tom HarknessandClaude Sonnet 5 5c0c18326b pm5 cep: skip resync on the FAP's 0xFF dummy-poll bytes
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-14 20:11:44 +11:00