Commit Graph
22551 Commits
Author SHA1 Message Date
Niel Nielsen 885cbc15d3 Refactor flow control and update CRC handling
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 20:03:15 +02:00
iceman1001 a2374e93a9 fix missing log entries for sim module communications 2026-08-27 17:06:14 +02:00
iceman1001 9040f60f17 text 2026-08-27 15:41:43 +02:00
iceman1001 5c38ce0a1d added a wake up pipeline to see if sim module actually is doing things or not. Might not work well on Windows machines... proxspace I am looking at you. but in short this would make comms between device and client faster 2026-08-27 15:35:45 +02:00
iceman1001 98c5897bbe a slow test should only be run during --long2 2026-08-27 15:34:06 +02:00
iceman1001 bbe0c11e4c reverting 2026-08-27 14:26:35 +02:00
iceman1001 f78890cb03 no table when no AID found 2026-08-27 14:25:40 +02:00
iceman1001 8b9f3951b1 fix overeager padding being added to string array 2026-08-27 13:42:14 +02:00
iceman1001 2b00e3f513 better adaptive table output in 2026-08-27 12:46:33 +02:00
iceman1001 3ba5936c70 faster client polling. Should make the pm3 client more spiffy 2026-08-27 12:44:30 +02:00
Iceman 89a5120e2d Merge pull request #3535 from Antiklesys/master
SC Bugfix after latest changes
2026-08-27 14:51:24 +07:00
Antiklesys b3315e6d8a SC Bugfix after latest changes
Commit: 7488b5b introduced explicit support for Grace SAM replies with a six-byte routing tail in sam_common.c, sam_picopass.c, and sam_seos.c.
sam_sc.c was missed and retained the old hardcoded offsets response[1], response[4], and response + 5.
2026-08-27 15:50:42 +08:00
iceman1001 8cef2d5822 fix reinitialization of sim module 2026-08-27 09:37:18 +02:00
iceman1001 aeb5347b87 next sim module firmware sim017.bin, 2026-08-27 09:26:08 +02:00
Philippe Teuwen 18c7e69295 rework pm5 doc 2026-08-27 09:15:37 +02:00
Philippe Teuwen 60a61fc343 rework pm5 doc 2026-08-27 09:11:07 +02:00
iceman1001 dabc7d645b shaving off some time with ATR. Revert back the timings for i2c bus. still a very slow bus 2026-08-27 02:47:45 +02:00
iceman1001 62b7f49089 add some more smart card tests for T=1 etc. Thanks Claude 2026-08-27 02:01:55 +02:00
iceman1001 7488b5bb79 fix to work with different SAMs. Fixed some overflow bugs and better asn1 decoding. Also enjoys the speed up from i2c sim module. Thanks Claude 2026-08-27 01:59:33 +02:00
iceman1001 84ad2fb8d4 new sim module firmware, shorter delays for T=0 transfers 2026-08-27 01:38:46 +02:00
iceman1001 a76399c030 unify --t0 --t1 selection of T=0, T=1 parameters 2026-08-26 23:58:48 +02:00
iceman1001 35d1cb4fa7 fixed timings, T=1 <> T=0 swaps when emv card doesn't support T=0, 2026-08-26 23:57:47 +02:00
Iceman c5ffec1305 Merge pull request #3533 from kormax/felica-idi-issuer-information-parsing
Enable `hf felica info` to determine card issuer, serial, issuance date based on extracted IDi
2026-08-27 01:49:02 +07:00
iceman1001 6b7678edeb added some tests of etc annotations 2026-08-26 20:47:55 +02:00
iceman1001 5f05cbf576 the annotations for 7816 handles contact vs contactless situations better now. Thanks Claude 2026-08-26 20:44:34 +02:00
iceman1001 dcb474a963 added ISO 7816-3 protocol and parameter selection exchange command. wired up T=1 in device side and fixed timing issues too. Thanks Claude 2026-08-26 20:42:39 +02:00
iceman1001 6a3ab99611 added updated sim module firmware v4.53, it now supports T=0 and T=1. T=0 got some bug fixes too. Look at https://github.com/gentilkiwi/kproxmark3_sim for all details 2026-08-26 20:34:43 +02:00
Niel Nielsen fa156e4ba0 Update BWM framing constants and functions
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 20:22:05 +02:00
Niel Nielsen d2bd743542 Refactor bwm_forward.c for improved clarity and structure
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 20:22:05 +02:00
Philippe Teuwen 7fb8927523 Fix streaming bug affecting mostly the pm5
Bug triggered with:
lf read -s 50000
hw ping

ReadLF_realtime() in lfsampling.c never knew how many samples the client wanted — for the realtime path, lf_sample_payload_t.samples was never populated on the client side, and the ARM handler in appmain.c (CMD_LF_ACQ_RAW_ADC/CMD_LF_SNIFF_RAW_ADC) ignored it anyway. So the device just streamed samples indefinitely, only checking for a stop request roughly once per 64-sample USB burst, and even after noticing it, flushed one more trailing partial burst via async_usb_write_stop().

Meanwhile the client (WaitForRawDataTimeout in comms.c) stops listening in raw mode the instant it has collected exactly the number of bytes it asked for (e.g. 50000), then switches back to normal framed-packet parsing. Since the device kept sending more bytes past that point, those extra bytes sat unread in the pipe and got misinterpreted as a PacketResponseNGPreamble/OLD-frame header, corrupting every subsequent USB exchange (hw ping, etc.) — reproducible even with a plain lf read -s 50000, no trigger/COTAG needed.

Moreover, we make sure the client doesn't stop listening, even briefly, during stream reception.
2026-08-26 20:16:46 +02:00
kormax 3451febfc4 Enable 'hf felica info' to determine card issuer, serial, issuance date based on extracted IDi 2026-08-26 20:40:05 +03:00
kormax 727a7c879f Optimize FeliCa command execution behavior based on pre-existing IC code knowledge 2026-08-26 17:35:22 +02:00
Philippe Teuwen 18bc735822 ARM: err on more warnings 2026-08-26 17:19:13 +02:00
quantum-x 9d2598aecb Update README.md
Added clarity to PR

Signed-off-by: quantum-x <simon.yorkston@gmail.com>
2026-08-26 16:28:48 +02:00
quantum-x 8fd64488e2 Update README.md / Clarify iCopy-X
Tweaked README.md to reflect the updated iCopy-X situation. 
Devices running the Open Source firmware are 100% compatible with latest iceman firmware / no DRM / etc. 

Signed-off-by: quantum-x <simon.yorkston@gmail.com>
2026-08-26 16:28:48 +02:00
Philippe Teuwen 0c8005b9c1 Remove inline keyword to fix compiler warning about it not being fulfilled anyway 2026-08-26 16:26:48 +02:00
Philippe Teuwen d6c28f7c90 minor 2026-08-26 16:26:05 +02:00
Philippe Teuwen 9c6ca6be4a Add missing prototype 2026-08-26 16:24:44 +02:00
Niel Nielsen e71f37ef32 Remove WITH_BWM_FORWARD from PLATFORM_DEFS
Removed the conditional definition for WITH_BWM_FORWARD in PLATFORM_DEFS.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 3156f0bfd7 Add ble_posix.c to CMakeLists.txt
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen c5c53d444f Increase RX buffer size and improve comments
Enlarged the kernel RX buffer and updated comments for clarity.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 46ab575247 Implement BLE support in uart_posix.c
Added BLE support to serial port handling for Unix systems, including connection and data transmission methods.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen d573ebc624 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 93434d0ee6 Delete client/src/ble_posix.h
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 47574c2e02 Delete client/src/ble_posix.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 3c8b9db0b8 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 6e741fa9e9 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen d0fc4336be Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen ec6f468f36 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 5560b2dbbe Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00