Commit graph

17 commits

Author SHA1 Message Date
iceman1001
c1729ca264 if simulation fails, lets return back 2025-06-11 21:39:58 +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
nvx
812c58f601 cardhopper fixes
make usart write buffer const
sub out magic numbers with defines
fix edge case handling 255/256 byte frames (including crc)
add sanity checks to avoid buffer overrun on some "should never happen" edge cases
don't wait for rats reply from card before listening to next reader frame
cap fsci to 8 (256 bytes) as that's the most the proxmark3 codebase currently handles
eliminate 1k of ram usage by tweaking how emulation responses are sent
2025-04-21 23:17:47 +10:00
iceman1001
ab676287d2 fix breaking builds 2024-11-20 23:48:14 +01:00
nvx
ef0cf93a5d fix typos and regenerate command list 2024-11-02 23:34:38 +10:00
nvx
df5e2ce05b improve cardhopper to improve reliability when parts of the packet are buffered 2024-11-02 19:53:23 +10:00
Philippe Teuwen
838e0adfa7 rework Mifare simulation flags 2024-10-19 20:34:40 +02:00
Sebastian Meyer-Bohr
6da624c580 Fix SimulateIso14443aInit usage
Added NULL as `uint8_t *iRats` to all invokations in armsrc/Standalone.

Not sure if that is the right thing to do: The actual code checks for the presence of a special flag, but does not contain a check for NULL.
IMHO adding a NULL check in `iso14443a.c` line 1259 wouldn't hurt, and could catch programming errors (flag set by accident, but NULL passed).

Maybe @evildaemond wants to verify whether my fix does the right thing or if I missed something (they added the iRATs to `iso14443a.h` with 56324b16b2).
2024-10-07 11:44:27 +02:00
iceman1001
7a4bd03cc0 added bounds checking for when the proxmark3 is simulating a ISO14443a tag 2024-09-05 18:38:17 +02:00
iceman1001
9c181dd83d step one of bounds checking all responses when receiving ISO14443A frames... because @doegox find a missbehaving IC clone..... 2024-09-05 17:52:10 +02:00
iceman1001
5b31211971 style 2024-01-16 11:53:42 +01:00
nvx
1828358ab0 Multiple hf_cardhopper improvements
Allow button presses to break
Handle non-zero CID from reader by relaying RATS to the card and improving PPS and WTX handling
More reliably cook ATS values
Ignore packets that look like they're coming from the client (NG packets)
2024-01-15 22:05:30 +10:00
nvx
33eaaa535f Changed hf_cardhopper standalone mode to allow running over the internal Proxmark3 USB-CDC serial port.
This functionality can be enabled by adding the following to your Makefile.platform:
STANDALONE_PLATFORM_DEFS+=-DCARDHOPPER_USB
2023-12-29 22:06:57 +10:00
Philippe Teuwen
27edaa6d0c forgot fct declaration 2023-09-07 22:48:55 +02:00
Philippe Teuwen
3aeb5c493f fix a few cppcheck warnings 2023-09-07 22:28:37 +02:00
nvx
8dd963d305 make style 2023-08-24 16:34:33 +10:00
startrekdude
0d442d7f19 Add hf_cardhopper standalone mode
Adds the hf_cardhopper standalone mode, as one component of my (Sam Haskins) and
Trevor Stevado's long-range relay attack on ISO 14443-4 Type A protocols, as
presented at DEF CON 31.
2023-08-22 01:10:21 -04:00