Commit graph

546 commits

Author SHA1 Message Date
iceman1001
c9f9fcb198 fix bad merge in ul-c sim 2025-08-18 22:53:42 +02:00
iceman1001
24d80f51a9 style 2025-07-04 12:22:09 +02:00
火山大隊長
ea2796dc6c Fix: magic detection for SAK=0x00 cards by forcing RATS 2025-07-03 05:09:54 +08:00
iceman1001
883415fc99 style 2025-06-22 17:36:39 +02:00
iceman1001
65607fc727 added Ultralight-C simulation. hf mfu sim -t 13. Use eload first. Also added support to upload UL-C dictionaries and UL-AES to spiffs memory. A lot of textual reworked across client. Unifiy texts and a bit more color ;) 2025-06-19 17:26:20 +02:00
iceman1001
7a9b3383d4 fix missing flushing bits also in thinfilm fct 2025-06-17 18:28:22 +02:00
Philippe Teuwen
67da1c8ca5 Make CRC size explicit in some cmd/reply size calculations 2025-06-16 10:52:05 +02:00
Philippe Teuwen
eb31bcad07 Increase MAX_MIFARE_FRAME_SIZE to cope with UL AES auth, and fix code using MAX_MIFARE_FRAME_SIZE while it should use MIFARE_BLOCK_SIZE + 2 2025-06-16 00:06:23 +02:00
Philippe Teuwen
25932cafb7 iso14443a ManchesterDecoding: flush parity bits 2025-06-16 00:03:32 +02:00
Philippe Teuwen
86d36a3be3 redundant break 2025-06-15 13:08:23 +02:00
iceman1001
92c288ab85 style 2025-06-11 21:40:54 +02:00
Iceman
90210fe588
Merge pull request #2853 from sup3rgiu/mfu-counters
Fixed SimulateIso14443aTag() to make MFU counter increments persistent in emulator memory.
2025-05-29 14:44:13 +02:00
iceman1001
b2e587afa5 missing break, migth lead to strange behavior 2025-05-28 20:51:51 +02:00
iceman1001
74f1936132 convert to our calloc instead since we prefer to know allocated shared memory is empty. Also removed a malloc(1) which is just a waste of bytes just like @NVX said a year ago at DefCon 2025-05-25 09:55:32 +02:00
iceman1001
b6a39768a1 text 2025-05-24 21:30:23 +02:00
sup3rgiu
d5beb66508 Fixed SimulateIso14443aTag() to make MFU counter increments persistent in emulator memory.
- Fixed arguments for `SimulateIso14443aInit` in `hf_msdsal.c`, `hf_cardhopper.c`, `hf_reblay.c` and `hf_tcprst.c`.
2025-05-22 19:57:30 +02:00
iceman1001
84b565bec4 style 2025-05-19 22:31:41 +02:00
iceman1001
42cdd34e59 fix #2834 refactored to use local pointer, no modification of input polling_parameters pointer is done. The compilation error error: initializer element is not constant .frames should be fixed. Using defines and removed some global vars 2025-04-30 18:55:07 +02:00
iceman1001
cb4a0e2333 rename struct to follow code style 2025-04-30 13:27:41 +02:00
kormax
3550f11726 Remove mag argument from commands; Add support for magsafe polling via 14a config 2025-04-20 17:55:55 +03:00
iceman1001
bc1c47e81b style 2025-04-13 12:25:14 +02:00
kormax
56336d9d82 Add support for polling loop annotations 2025-04-09 12:31:21 +03:00
iceman1001
875b3c44b4 unify text - step 1 2025-03-25 10:12:16 +01:00
Philippe Teuwen
371d98d3b0 cppcheck duplicateBreak 2025-03-24 21:39:45 +01:00
iceman1001
a2d10d7910 fix cpp warnings 2025-03-21 13:19:01 +01:00
iceman1001
b4cc21c68f modified hf 14a apdu to report back when extending time and also added a possibililty to interrupt the extension loop with button press or usb commad. A bunch of minor textual changes 2025-03-20 19:58:13 +01:00
iceman1001
76fa254c0f only check 4 bytes 2025-03-19 15:35:40 +01:00
iceman1001
1bd811f7a1 better OTP update sanity check by @jmichelp. Checks every bytewise if any bit is 0 2025-03-19 15:34:20 +01:00
iceman1001
c8cde55a5e fix OTP simulation 2025-03-19 15:22:55 +01:00
iceman1001
3c873d34bc style 2025-03-19 11:26:25 +01:00
iceman1001
94a7d87b9d simplify logic 2025-03-19 09:08:15 +01:00
iceman1001
af93383115 fix #2790 - MFU OTP writes shouldnt allow for zeroing. Bad sanity check implemented, it should check that every bit doesnt try to zero out. Will do for now 2025-03-19 08:56:00 +01:00
iceman1001
a7643eef7c style 2025-02-22 18:01:07 +01:00
iceman1001
cef07dedf6 code style, code clean up of redundant functions, comments, its many minor fixes across the platform. Sorry for not making 20 commits 2025-02-21 15:38:33 +01:00
iceman1001
50b9067173 style 2025-02-18 18:38:16 +01:00
Philippe Teuwen
430ef1f273 4A sim: add malloc checks and fix buf size macro 2025-02-12 22:02:21 +01:00
Philippe Teuwen
4e5a8b9848 4A emulation: warn if chaining command received 2025-02-12 15:46:12 +01:00
Philippe Teuwen
fcd6de8b7b 4A emulation: avoid overflow and don't rely on TL 2025-02-12 09:13:18 +01:00
Philippe Teuwen
1acc030fd4 rework simaid & rename few vars 2025-02-12 08:44:42 +01:00
Philippe Teuwen
f8abfc0731 hf 14a simaid: ignore premature HALT until RATS is reached 2025-02-05 23:31:11 +01:00
Philippe Teuwen
9933034566 hf 14a simaid: support reader requests without CID 2025-02-05 23:31:11 +01:00
Philippe Teuwen
24f474feaa hf 14a sim/simaid: Fix emulated RATS for -t 11 2025-02-05 23:31:11 +01:00
Shawn Hoffman
aa286b4a16 fix bigbuf allocators (tracing + malloc) overwriting each other
* BigBuf.c: use s_ prefix for statics
* BigBuf_Clear_ext already calls clear_trace, so remove extra calls
* add some sanity checking of allocator args
* dont compare PDC_RNCR to false
2025-01-24 15:56:45 -08:00
iceman1001
3a3ea75d12 style 2024-11-15 14:28:14 +01:00
iceman1001
d398576fc7 the 14a sim had a wrong size check of the irats pointer instead of actual size. Only way around it was to add the length at function call 2024-11-15 13:27:39 +01:00
iceman1001
133fe505f6 remove debug 2024-11-14 22:14:41 +01:00
iceman1001
b3285cce8a style 2024-11-02 15:13:40 +01:00
iceman1001
9ddd833cba fix string handling and styles 2024-11-02 14:50:31 +01:00
nvx
ef0cf93a5d fix typos and regenerate command list 2024-11-02 23:34:38 +10:00
Philippe Teuwen
838e0adfa7 rework Mifare simulation flags 2024-10-19 20:34:40 +02:00