Commit graph

3590 commits

Author SHA1 Message Date
iceman1001 7c6d60e7ef style 2024-02-03 16:05:58 +01:00
Christian Zietz c1b23a761c Use struct for parameter passing in CMD_HF_ISO14443A_SET_THRESHOLDS 2024-02-03 12:09:08 +01:00
Christian Zietz 404d0a8c7b Fix 'make style' findings 2024-02-02 20:51:56 +01:00
Christian Zietz 43b257ddb4 Make demodulation threshold for Legic configurable
This adds a new parameter to the "hw sethfthresh" command.
2024-02-02 20:51:49 +01:00
Christian Zietz dbfd8b7a6d Make detection threshold for ISO14443A configurable
This adds a new command "hw sethfthresh" to configure the thresholds
used inside the FPGA while demodulating ISO14443A. The thresholds
need to be increased on particularly noisy hardware, such as certain
Chinese PM3 Easy clones.
2024-02-02 20:51:05 +01:00
iceman1001 81ce1fd4ab changed magic detection to use flags. Fixes previous problems with magic ntag, also renamed defines to seperate them better. 2024-02-02 15:53:57 +01:00
iceman1001 0afeb77c82 14b sim clean up 2024-01-28 12:30:29 +01:00
iceman1001 5028d6f664 style 2024-01-28 11:16:45 +01:00
iceman1001 c7af357dc1 style 2024-01-26 20:48:41 +01:00
iceman1001 adfab4992d not clear how the slot marker / anticollision loop works for xerox but we seem to ignore retlen 2024-01-26 19:48:52 +01:00
iceman1001 d5e99e394e clean 2024-01-26 18:52:30 +01:00
iceman1001 0796209ee4 xerox doesnt use framing 2024-01-26 16:48:01 +01:00
nvx e22776a7e0 style 2024-01-26 20:20:25 +10:00
nvx 49f7ae57dc Changed hf mf gdmcfg/gdmsetcfg commands to support Gen1a and GDM Alt magic wakeups
This was implemented with a new pair of RPCs CMD_HF_MIFARE_READBL_EX and CMD_HF_MIFARE_WRITEBL_EX
these RPCs support all combinations of read/write commands, wakeup, and auth options so
in time can replace the other MFC read/write commands too reduce armsrc code size
and complexity.

Also added config parsing for the gdm cfg block when reading with hf mf gdmcfg and
explicitly with hf mf gdmparsecfg.
2024-01-26 20:09:08 +10:00
iceman1001 2288c7e72b less memory footprint 2024-01-25 16:23:00 +01:00
iceman1001 acdda19316 style 2024-01-25 16:21:41 +01:00
iceman1001 b7928eb85e text 2024-01-25 11:22:55 +01:00
iceman1001 efc8c0b8ab added a interactive flag for hf14asniff, and unified text across the project 2024-01-25 10:21:36 +01:00
Yann GASCUEL f4d4e975ee iso15sim: init earlier to prevent other FPGA loading issue 2024-01-25 08:54:10 +01:00
iceman1001 414275802d style 2024-01-25 01:55:07 +01:00
iceman1001 28b887aedb text 2024-01-25 01:45:18 +01:00
iceman1001 8456e41b02 forgot the reverse part 2024-01-25 00:37:15 +01:00
iceman1001 ba578ee139 hf 15 sim, reverse uid and a shorter read from emul to get uid if none is user given 2024-01-25 00:34:05 +01:00
iceman1001 6c1ebc3398 cleaning up redundant functions. the extra checks in bigbuff might affect simulation 2024-01-24 23:41:48 +01:00
iceman1001 3f82965fa8 style 2024-01-24 23:37:27 +01:00
iceman1001 a6fa662d3c increase upload block size for 15 eload, was 64 now 256 2024-01-24 23:37:13 +01:00
iceman1001 2d9c1a941c style 2024-01-24 18:18:13 +01:00
iceman1001 db616ce7bf style 2024-01-24 17:12:56 +01:00
Iceman 769a0aa26b
Merge pull request #2270 from martian/rename-cmdreadmem-flag
Rename CMD_READ_MEM_DOWNLOAD flag.
2024-01-24 17:11:15 +01:00
Martijn Plak 6202da367f coding style 2024-01-24 17:05:37 +01:00
Martijn Plak 1d14bc38c5 Rename CMD_READ_MEM_DOWNLOAD flag.
It got included in pm3_cmd.lua but shouldn't be because it's not a command.
Also, the bitshift in the value upsets some versions of lua.
2024-01-24 16:36:52 +01:00
Yann GASCUEL c1bc9f75f6 iso15sim: fix type issue to make CodeQL happy 2024-01-24 15:47:39 +01:00
Yann GASCUEL e5f519e085 iso15sim: fix tag initialisation when full 00 uid provided 2024-01-24 13:59:13 +01:00
Yann GASCUEL aabbf7d4b2 iso15sim: enhance parameter controls and add reply when error 2024-01-24 13:59:13 +01:00
Yann GASCUEL 05912ff130 iso15sim: rename, move and PACK iso15_tag struct to be usable in client 2024-01-24 13:59:13 +01:00
Yann GASCUEL a9b068108b iso15sim: fix: typo 2024-01-24 13:59:13 +01:00
Yann GASCUEL c8dce595ba hf15sim: fix: ignore manifacturer code is present in requests 2024-01-24 13:59:13 +01:00
Yann GASCUEL 548b804650 standalone: hf_15sim: fix typo 2024-01-24 13:59:13 +01:00
Yann GASCUEL 7cd9f20efb iso15sim: add support for addressed requests including IC number 2024-01-24 13:59:13 +01:00
Yann GASCUEL f71eaaec55 iso15sim: add suppot for SET_PASSWORD 2024-01-24 13:59:13 +01:00
Yann GASCUEL 4a45aaf065 standalone: hf_15sim: adapt instruction depending on flash presence 2024-01-24 13:59:13 +01:00
Yann GASCUEL d73576ecf5 standalone: hf_15sim: text/debug fix 2024-01-24 13:59:13 +01:00
Yann GASCUEL afa821b3ec iso15sim: fix: reset error to 0 after an error append 2024-01-24 13:59:13 +01:00
Yann GASCUEL 8dc87d5432 iso15sim: get more variable randoms 2024-01-24 13:59:13 +01:00
Yann GASCUEL a72e72a0f7 standalone: hf_15sim: reduce debug 2024-01-24 13:59:12 +01:00
Yann GASCUEL bad694d779 iso15sim: unfix the random number 2024-01-24 13:59:12 +01:00
Yann GASCUEL 40069f6fd1 iso15sim: fix compile issue: remove unused variable 2024-01-24 13:59:12 +01:00
Yann GASCUEL 9611b411da iso15sim: fix: remove reader command tracing from SimTagIso()
It's now already included in GetIso15693CommandFromReader().
2024-01-24 13:59:12 +01:00
Yann GASCUEL 120c9ab534 iso15sim: fix addressed request minimal size 2024-01-24 13:59:12 +01:00
Yann GASCUEL 5e2ff11838 iso15sim: fix CRC lenght calculation du to change in Crc16ex() 2024-01-24 13:59:12 +01:00