Commit Graph
4338 Commits
Author SHA1 Message Date
dxl e4fa411ae9 Run ConfigSystemClocks() & UnitTestMain() in start.c 2026-08-19 15:32:39 +02:00
dxl 36f1c7e44c Make common_arm to hardware abstraction layer. 2026-08-19 15:32:39 +02:00
Philippe Teuwen 51d0ff260a cppcheck fix sanity check condition in SimTagIso15693 2026-08-19 13:53:09 +02:00
Philippe Teuwen d2a8cca233 Add pm5 capabilities 2026-08-19 12:04:33 +02:00
dxl 40ec760a92 Strictly check the length of atqa. 2026-08-19 12:04:33 +02:00
Philippe Teuwen 436bbed4a2 Add placeholder for CMD_MAIN_CHIP_UNIQUEID 2026-08-19 12:04:32 +02:00
iceman1001 53b4e2095b style 2026-07-28 15:53:20 +02:00
YoungJules faaab023f6 Added --kgh flag on clone to take care of checksum in last byte of segment payload on KGH cards, which includes the uid. Added a small debug on legic sim. Gated --fill option on wrbl to only allow after offset 22. You can still brick your card by wrbling byte by byte, but fill won't kill. 2026-07-28 14:37:32 +02:00
kormax b2a54cd95b Move some used FeliCa constants into shared protocols 2026-07-25 12:58:52 +03:00
kormax 1a4c2b7c70 Normalize FeliCa command constant names 2026-07-25 12:46:47 +03:00
Mistial Developer bc289cf436 Allow mifare to recover after usb disconnection 2026-07-24 03:07:36 -07:00
iceman1001 2c6e607110 style 2026-07-15 16:39:15 +02:00
iceman1001 b8911a29a1 fix coverity findings 2026-07-03 18:08:02 +02:00
iceman1001 dc5e213420 fix coverity #910754 2026-07-03 17:19:00 +02:00
iceman1001 fc773ea230 fix coverity #910036 2026-07-03 11:26:32 +02:00
iceman1001 b5abc8b335 fix coverity #910704 2026-07-03 11:25:14 +02:00
iceman1001 2d43d4c021 fix coverity #910669 2026-07-03 11:20:33 +02:00
iceman1001 c118e1cf20 fix various coverity scan findings' 2026-07-03 11:16:44 +02:00
dangerous-tac0s a0797e0530 Merge branch 'RfidResearchGroup:master' into hf-mfu-esetblk 2026-07-02 18:14:31 -07:00
michaelandClaude Opus 4.8 b30bde22f6 fix(sim): load Amiibo PWD/PACK into emulator memory at init, serve from memory
For tagType 7, when the PWD page is unset (0000) the UID-derived Amiibo
password and its PACK (0x8080) are now written into emulator memory at sim
init, and the PWD_AUTH path reads PWD and PACK straight from emulator memory.
Removes the auth-time pwd substitution and the PACK 0x8080 override, so
eset/eview are authoritative (what's in memory is what the sim serves) while
Amiibo sims still work.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 16:44:27 -07:00
michaelandClaude Opus 4.8 fd5ad55104 fix(sim): serve NTAG PACK live from emulator memory in PWD_AUTH
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 15:28:19 -07:00
iceman1001 6c3e3c7a44 fix several coverity findings 2026-07-02 16:48:17 +02:00
iceman1001 344e7de9a1 style 2026-07-02 16:30:03 +02:00
iceman1001 6fe58f8e3c several coverity fixes 2026-07-02 16:29:42 +02:00
kormax b3781a7bbc Update ASK CTS general info output 2026-06-30 23:41:44 +03:00
Iceman 15ee6977a1 Merge pull request #3400 from kormax/ask-cts-improvements
ASK CTS improvements
2026-06-30 04:35:44 +07:00
kormax e9fe7867ca Fix ASK CTS timing and framing 2026-06-29 23:11:57 +03:00
kormax a85c7cf49b Do not truncate 2 last bytes of Innovatron ATR 2026-06-29 21:48:02 +03:00
kormax bd78abe41e Process ATTRIB RR response 2026-06-29 21:31:44 +03:00
iceman1001 3525a7bfe8 minor style 2026-06-29 02:07:35 +02:00
kormax 9d7447ddcd Refine Innovatron protocol handling 2026-06-26 23:20:05 +03:00
Philippe Teuwen 5666cdf4e8 make style 2026-06-23 00:03:16 +02:00
Philippe Teuwen 10fdef1811 standalone mode HF_DOEGOX_COMMIT: DESFire suspended commit without relay 2026-06-23 00:03:00 +02:00
kormax 1e254bc7a1 Add support for Innovatron protocol to Calypso commands 2026-06-18 22:33:41 +03:00
kormax a881c81ec1 Add support for detecting Innovatron protocol in 'hf 14b info' 2026-06-18 20:26:13 +03:00
kormax 6422025e43 Add support for ResetMode command to 'hf felica sim' 2026-06-13 22:25:24 +03:00
kormax da5355ed81 Add support for GetContainerId to 'hf felica sim' 2026-06-13 22:20:45 +03:00
kormax 0e9e796670 Add support for Echo command to 'hf felica sim' 2026-06-13 22:16:10 +03:00
towelbyte c1cefd6e38 Complete and working reimplementation of COTAG support
- "lf cotag reader": now behaves mostly the same as "lf read",
   except it is dedicated for COTAG.
	- It makes sure to send COTAG start sequence and to use
          real time sampling mode to get enough samples.

- "lf cotag demod": Working client-side COTAG demodulation implementation
   (high-low raw demod + Manchester demodulation from high/low demod).
	- Now uses samples directly from g_GraphBuffer
	- Supports 3 types of COTAG preamble (1 active, 2 passive), which
          can start anywhere in the samples.
	- Prints full 128-bits of COTAG tag data in 3 formats: raw,
          groupped by nibbles, and in hex, and identifies and
          prints out the card number.

Signed-off-by: andrej@towelbyte.net
2026-06-12 22:49:06 +02:00
kormax 4ad136b5db Implement 'hf felica sim' command 2026-06-12 18:31:57 +03:00
horrordash 611e5f0878 fix incorrect reading of MF Classic 4K 2026-06-12 00:04:46 +03:00
Philippe Teuwen 184a957436 counterfeit ULC: add support to auth with nonce pairs 2026-06-10 01:02:14 +02:00
Philippe Teuwen 607737e52e counterfeit ULC: need to merge nonce collection in auth logic for proper timings 2026-06-10 00:39:46 +02:00
Iceman d9265ad813 Merge pull request #3369 from dangerous-tac0s/15693-inventory-enhancements
15693 inventory enhancements
2026-06-09 07:59:40 +02:00
CinderSocket 0791bcc32c fix-emulator-hardening 2026-06-08 18:08:26 -07:00
michaelandClaude Opus 4.8 e53cd40876 hf 15: dedicated (shorter) empty-slot timeout for 16-slot inventory
The 16-slot inventory reused the single-slot read timeout (ISO15693_READER_TIMEOUT,
~1558us) for every slot, so each empty slot waited the full window. That timeout only
needs to catch the START of a response (a SOF) within t1 (~320us)+margin -- once a SOF
is seen it stops applying and the full response is still received. Add a dedicated
ISO15693_INVENTORY_SLOT_TIMEOUT (~755us) for the inventory slot 0 + EOF slots, leaving
the single-slot and WRITE timeouts untouched.

Verified on-device via hf 15 list (carrier-period timestamps): per-slot ~1.0ms vs
~1.8ms, ~1.8x faster rounds, no tags missed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 14:54:00 -07:00
michael 9a4fcf2140 hf 15 reader: 16-slot anti-collision inventory (--all)
Add ISO 15693 16-slot inventory with anti-collision tree-walking, reachable via 'hf 15 reader --all'; single-tag reading stays the default. The firmware steps the 16 slots with EOF markers and flags 'signal but no decode' slots as collision hints; the client walks the UID mask tree, validates CRC per slot to confirm real collisions, and dedups discovered tags. Single-tag reading (default) and 16-slot inventory (--all) both run under hf 15 reader.
2026-06-08 14:54:00 -07:00
CinderSocket 81a5211594 Fix a situation where memory is improperly cleared 2026-06-07 16:37:32 -07:00
Philippe Teuwen ff04e1ea9a hf mfu cauth: add -c to collect nonces 2026-06-07 22:58:39 +02:00
Philippe Teuwen fb238015fa hf mfu sim --1a2-mirror 2026-06-04 20:19:15 +02:00