Commit Graph
23334 Commits
Author SHA1 Message Date
Niel Nielsen 1123615bd0 Update BWM framing constants and comments
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 19:40:57 +02:00
Niel Nielsen 72c99f1345 Fix formatting and comments in bwm_forward.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 19:40:20 +02:00
Niel Nielsen 7788330c7c Merge branch 'RfidResearchGroup:master' into WIFI-test 2026-08-27 19:28:57 +02:00
iceman1001 a2374e93a9 fix missing log entries for sim module communications 2026-08-27 17:06:14 +02:00
Niel Nielsen 63112fad75 Merge branch 'RfidResearchGroup:master' into WIFI-test 2026-08-27 16:58:47 +02:00
Niel Nielsen efdf61d78d Add hostname configuration command to bwm_wifi.h
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 16:46:49 +02:00
Niel Nielsen 0035d7058c Add hostname parameter to bwm_wifi_forward_up function
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 16:46:25 +02:00
Niel Nielsen 615126907f Add host parameter to bwm_wifi_forward_up function
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 16:45:50 +02:00
Niel Nielsen fe0b6c46b2 Add hostname parameter to WiFi command
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 16:44:35 +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
Niel Nielsen f954394aab Add PM3 command includes and fix function closing
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:30:55 +02:00
Niel Nielsen d8aae194b6 Replace ticks.h with ticks_apis.h in bwm_wifi.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:26:50 +02:00
Niel Nielsen 862341207c Implement CmdBWMWifi for WiFi connection setup
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:25:49 +02:00
Niel Nielsen 57ea719363 Add CmdBWMWifi function for WiFi BWM logging
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:17:31 +02:00
Niel Nielsen 775bbae4d3 Add bwm_wifi.h include for WiFi functionality
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:15:10 +02:00
Niel Nielsen fcd03515b4 Add bwm_wifi.c to SRC_BWM when WITH_BWM_FORWARD is set
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:13:29 +02:00
Niel Nielsen a0d6bbaaee Add WiFi forwarding command handling
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:10:42 +02:00
Niel Nielsen 2a7b12bb3d Add CMD_PM5_BWM_WIFI command definition
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:03:24 +02:00
Niel Nielsen 42b293fbe8 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 13:01:04 +02:00
Niel Nielsen 5076227245 Merge branch 'RfidResearchGroup:master' into WIFI-test 2026-08-27 12:59:55 +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
Niel Nielsen 2f16f4b10b Refactor BWM forward header definitions
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 12:41:06 +02:00
Niel Nielsen a1d256e16a Refactor flow control and update CRC handling
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-27 12:39:04 +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