Commit graph

116 commits

Author SHA1 Message Date
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
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
1a437d4a18 fix cpp warning 2025-03-21 11:34:03 +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
Philippe Teuwen
1acc030fd4 rework simaid & rename few vars 2025-02-12 08:44:42 +01: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
9ddd833cba fix string handling and styles 2024-11-02 14:50:31 +01:00
Adam Jon Foster
b7aadc6d66
Update iso14443a.h
Added custom RATS via iRATS to regular iso14443a tag emulation

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2024-09-23 14:54:11 +08:00
Adam Jon Foster
56324b16b2
Update iso14443a.h
Added custom RATS option

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2024-09-23 14:46:52 +08:00
Adam Jon Foster
5be8f92cff
Update iso14443a.h
Added SimulateIso14443aTagAID

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2024-09-23 14:38:59 +08:00
iceman1001
b0dd246d94 const and bad OR 2024-09-06 09:52:30 +02:00
iceman1001
431a5d585e fix one too small 2024-09-05 19:51:10 +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
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
Henry Gabryjelski
efce76db53 more const for iso14443a 2023-08-14 22:07:04 -07:00
iceman1001
5faf625032 adapt name to match code style 2023-07-27 18:02:53 +02:00
kormax
a9cba02514 Move custom polling frame generation logic to client 2023-07-16 17:39:32 +03:00
kormax
45ca9ab4d6 Reduce struct memory footprint by reducing array sizes 2023-07-16 16:56:07 +03:00
kormax
c4f1b0768d Pass polling config via pointer instead of by-value, thus saving RAM 2023-07-16 16:49:31 +03:00
iceman1001
8fc05ad2a5 style 2023-07-16 15:30:43 +02:00
kormax
0094318515 Make ISO14443-A polling method more flexible 2023-07-16 14:46:30 +03:00
iceman1001
a63257799a test of faster pack response for "hf mfu sim -t 7" 2022-12-13 21:47:25 +01:00
Philippe Teuwen
9849156f37 arm 14a/mifare: Fix codeql warnings 2022-02-27 14:54:11 +01:00
iceman1001
98d291f5b1 fix hf 14a sim, on device side a sneaky detection if data started with zero, it would treat it as uid is in emulator memory. Also fixed a size issue on flag 2022-01-22 18:29:11 +01:00
iceman1001
e550f8ccc8 cppcheck fixes for const 2022-01-06 15:40:11 +01:00
Philippe Teuwen
b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
iceman1001
0e5e9163a1 added apple magsafe polling, thanks to @tcprst 2021-10-23 18:54:44 +02:00
iceman1001
37b89c7b11 add ehanced contactless polling to 14a reader/raw commands 2021-10-17 11:38:37 +02:00
iceman1001
7910464a85 cppchecker 2021-02-28 19:01:38 +01:00
cyberpunk-re
5486bdd18c Added 'mf mfu sim t 7 n <numreads>' - MFU emulation now supports automatic exit after <num> blocks read. 2020-11-30 20:07:51 +00:00
Philippe Teuwen
a8b92f48a7 reorganize few global vars & fcts 2020-11-05 23:05:52 +01:00
Philippe Teuwen
f9452ee19a Group 14a sim response indexes in header 2020-11-03 02:32:41 +01:00
Philippe Teuwen
b751354ea2 hf 14a: add config loopholes to deal with badly configured cards: invalid ATQA, invalid BCC, invalid SAK 2020-09-07 00:50:27 +02:00
Salvador Mendoza
d98897c3d5 Update iso14443a.h 2020-04-24 16:42:40 +02:00
Salvador Mendoza
ae1cb436ae Update iso14443a.h 2020-04-24 16:42:40 +02:00
iceman1001
0c8ead0bd6 fix: forgot some changes 2019-12-30 13:11:44 +01:00
Philippe Teuwen
763c94334b add missing includes and fix mf1ksim usage in hf_colin standalone mode 2019-08-13 17:39:48 +02:00
Philippe Teuwen
d19754567d summer restructuring:
* .h include only the strict minimum for their own parsing
  * this forces all files to include explicitment their needs and not count on far streched dependencies
  * this helps Makefile to rebuild only the minimum
  * according to this rule, most standalone .h are now gone
  * big app.h is gone
  * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway
* all unrequired include were removed
* split common/ into common/ (client+arm) and common_arm/ (os+bootloader)
  * bring zlib to common/
  * bring stuff not really/not yet used in common back to armsrc/ or client/
  * bring liblua into client/
  * bring uart into client/
  * move some portions of code around (dbprint, protocols,...)
* rename unused files into *_disabled.[ch] to make it explicit
* rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash
* remove PrintAndLogDevice
* move deprecated-hid-flasher from client to tools
* Makefiles
  * treat deps in armsrc/ as in client/
  * client: stop on warning (-Werror), same as for armsrc/

Tested on:

* all standalone modes
* Linux
2019-08-11 21:42:01 +02:00
Philippe Teuwen
25f358955b make hf search robust to various HF configurations 2019-08-03 22:14:12 +02:00
iceman1001
fbff51c88d Add: hf thinfilm info - support to read and decode Kovio Thinfilm NCT tags 2019-08-01 09:39:33 -04:00
Philippe Teuwen
c0eb19acb1 remove tabs 2019-07-24 00:52:24 +02:00
iceman1001
b05796c7c4 chg: hf mf dbg\nchg: hf mf sim\nchg: hf 14a sim - uses NG 2019-05-26 13:42:27 -04:00
Philippe Teuwen
27f7057961 Rename few USB -> PM3 to avoid misleading interpretations 2019-04-30 21:10:11 +02:00
Philippe Teuwen
482db05741 Rename few stuff for consistency 2019-04-18 12:49:51 +02:00
Philippe Teuwen
be15ad7fec Viva la revolucion 2019-04-17 21:30:01 +02:00
Eloff
249352a1e7 'hf mf sim' + 'hf 14a sim' now back to stable 2019-04-09 23:57:10 +03:00
iceman1001
ac88c435f6 remove old iso14443crc.c, fully replaced by crc16.c functions. 2019-04-09 10:12:15 +02:00