Commit Graph

840 Commits

Author SHA1 Message Date
douniwan5788 5122039547 Refactor hitag config_page_t for better memory alignment 2025-03-22 20:54:13 +08:00
iceman1001 87c2e82e2f style 2025-03-19 12:53:24 +01:00
douniwan5788 214ded2b97 Replace all μ(greek small letter mu, UTF-8 \xce\xbc) to µ(micro sign, UTF-8 \xc2\xb5) 2025-03-19 19:21:01 +08:00
douniwan5788 4bde83b89d Added lf hitag htu support for Hitag µ/8265 2025-03-19 18:56:23 +08:00
douniwan5788 3d0c8cab5c Refactor Hitag low-level functions into hitag_common 2025-03-19 17:05:39 +08:00
Iceman e2de8c6644 Merge pull request #2781 from douniwan5788/refactor_concatbits
Refactor the concatbits function to support both MSB and LSB first src
2025-03-18 07:43:36 +01:00
Henry Gabryjelski 21ad101ff5 Major update to EM4x70 support:
1. Rework how communications with tag occur.
    a. bitstream to be sent to the tag is now fully pre-generated.
    b. bits sent and received are logged with start / end times.

2. Support built-in `hw dbg` for controlling verbosity of debug output

The new bitstream generation and logging has exposed a surprising legacy behavior ... each of the command that sent additional data (beyond the command) were:
* inserting an extra RM zero bit
* force-enabling command parity is used

This was not expected.  However, this PR maintains the behavior of the existing code.

TODO: Root-cause why the third RM bit is needed.  Fix code to remove that hack.

TODO: change the arm/client interface to ONLY use arrays of bytes, with well-defined content endianness, to avoid this problem.
2025-03-16 01:05:55 -07:00
douniwan5788 d13e7b0b64 Refactor the concatbits function to support both MSB and LSB first src 2025-03-15 15:21:58 +08:00
iceman1001 2137284a93 style\n Some improvements to trace list -t seos annotations. 2025-03-12 16:41:06 +01:00
leecher1337 0e2a02bdf0 Implement new command hf 15 slixprotectpage to do ISO15693_PROTECT_PAGE on slix tags 2025-03-09 11:54:51 +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 4c6e74c3ce revert 2025-02-18 19:47:51 +01:00
Philippe Teuwen 1acc030fd4 rework simaid & rename few vars 2025-02-12 08:44:42 +01:00
n-hutton 8dbe1c7b06 more 2025-01-21 23:52:33 +00:00
n-hutton acb7de9d8d more cleanup noticed just now 2025-01-21 23:51:26 +00:00
n-hutton 3eb0238481 appears to work - using normal mifare sim init
working demo

works

seems to work so far

more cleanup and works

working copy

working, clean one more pass

cleanup continues

back in buisness babyyy

final cleanup before PR I hope
2025-01-21 23:39:25 +00:00
Iceman 76ad5a5b51 Merge branch 'master' into cherry_pick_emv
Signed-off-by: Iceman <iceman@iuse.se>
2025-01-14 16:26:35 +01:00
nvx 29e0c51393 Changed hf mf info - now differentiates between full USCUID and cut down ZUID chips 2025-01-14 22:36:59 +10:00
Piotr Rzeszut adadfb7fad Corrected documentation on SPI FLASH memory usage after SPIFFS area extension. 2024-12-29 22:45:50 +01:00
Piotr Rzeszut e3486e57b1 Extend spiffs area to full FLASH array except last two sectors (signature and reserve one for future use) 2024-12-29 22:20:49 +01:00
Piotr Rzeszut 2ccfa187ab Remove unused definitions related to fixed-size SPI flash, improve comments for documentation 2024-12-29 22:19:32 +01:00
Piotr Rzeszut b1ba5b3ea6 Merge branch 'master' into extend-spiffs-partition-last-page 2024-12-29 22:03:21 +01:00
Piotr Rzeszut dd17effaab Move T55XX config to spiffs file 2024-12-26 19:46:55 +01:00
Piotr Rzeszut d1db0aa799 Extending SPIFFS into last page of the SPI FLASH 2024-12-26 15:04:05 +01:00
Piotr Rzeszut 34883cf91f Remove unused pointers to statically alocated storage for keys from pmflash.h. iClass flash-stores password dictionary seem not to be used anywhere. 2024-12-26 03:03:48 +01:00
Piotr Rzeszut d9a3e4f050 Refactor keys in flash statistics to check for files 2024-12-26 01:11:46 +01:00
Piotr Rzeszut 5af815f271 Mifare dictionary uploaded to spiffs using legacy function 2024-12-25 21:08:44 +01:00
klks df3916c7b6 Add annotations for FMCOS2.0 CPU Card
Adding annotations for the FMCOS 2.0 CPU Card that is used/sold in China.
2024-12-20 22:50:20 +08:00
Piotr Rzeszut 565f3f1feb Extend storage allocated for Mifare keys to 4095 keys. Update documentation on the feature and memory map 2024-12-07 00:34:29 +01:00
douniwan5788 f0b93405fa fix Hitag S concatbits and lf em 410x clone --hts 2024-11-27 00:02:00 +08:00
n-hutton 4a23fb05f0 Cherry pick POC of emv simulation 2024-11-21 19:23:03 +00:00
ANTodorov d49e1f6af6 remove unused definition 2024-11-17 22:16:43 +02:00
ANTodorov 34e317a9df address review comments 2024-11-17 22:07:58 +02:00
ANTodorov 48ec109a1e use all spi flash v0.1
* introduced a new communication command CMD_FLASHMEM_PAGES64K to get the number of 64k pages
* "the last page" is a special, holding the dicts and some other stuff, relocated to there
* raised timeout when wiping a mem page (W25Q16 looks a bit slower than W25X20BV)
* loop all pages in Flash_WipeMemory()
2024-11-17 19:03:15 +02:00
Philippe Teuwen 46813e0e50 hf mf isen: rewrite counters, add specific NONCE_SUPERSTATIC case (when first nt == nested nt) 2024-11-05 17:07:54 +01:00
nvx 6d7fcc642a add gdm flag to hf mf c* commands
this enables the use of hf mf c* commands with gdm/uscuid cards when the alt wake up mode 20(7)/23 is enabled rather than gen1 wake up
2024-11-02 22:22:13 +10:00
Philippe Teuwen 0b35762b15 fix static enc nonce detection in hf mf info 2024-11-01 00:57:03 +01:00
douniwan5788 911766b212 add: support for all Hitag S response protocol mode 2024-10-23 22:08:52 +08:00
Philippe Teuwen 838e0adfa7 rework Mifare simulation flags 2024-10-19 20:34:40 +02:00
iceman1001 2932fefd82 style define 2024-10-19 06:36:52 +02:00
Philippe Teuwen 079689628b hf mf sim: add nested reader attack (needs data & rf08s nonces) 2024-10-16 19:54:03 +02:00
Philippe Teuwen 5b7ba3bf50 MFsim: RATS_IN_DATA was not a proper bit flag 2024-10-16 15:24:01 +02:00
douniwan5788 252d6a29db fix: switch Hitag S UID REQUEST to HITAGS_UID_REQ_ADV1 for Hitag 1 compatibility 2024-10-15 13:35:47 +08:00
Philippe Teuwen a11ba61b01 hf mf ecfill: add support for quick dump via backdoor auth 2024-10-13 22:55:41 +02:00
Philippe Teuwen 080ddc1595 fm11rf08s_nonces_with_data: save in JSON file 2024-10-06 23:14:30 +02:00
iceman1001 c002ae9f77 style 2024-10-06 10:08:17 +02:00
Iceman f00fac8b59 Merge pull request #2557 from douniwan5788/82xx_config
add: 82xx config parse
2024-10-04 19:39:48 +03:00
douniwan5788 9a50e608e0 add PM3_REASON_UNKNOWN 2024-10-04 23:25:15 +08:00
douniwan5788 d361cd863c add: 82xx config parse 2024-10-04 23:00:24 +08:00
douniwan5788 680f16573d fix: lf hitag hts rdbl read by page 2024-10-04 22:30:28 +08:00