Philippe Teuwen
153064ddfa
Fix a bunch of potential buffer overruns with CLIGetStrWithReturn :
...
Most prominent one was "lf pac clone --cn 123456789" causing garbage on the terminal
Some changed code was valid before but as ppl tend to copy-paste to new code,
better to uniformize and document usages of CLIGetStrWithReturn.
Exceptions left are when filling real buffers (bin, raw,...), not strings.
2024-07-30 22:23:04 +02:00
iceman1001
96a68a1ddc
fuzzing seems to believe we would actually write more than 50 bytes of ATR...
2024-02-19 18:21:19 +01:00
iceman1001
b910d7ea94
make miscchecks
2024-02-17 14:47:49 +01:00
iceman1001
f5e976afa6
style
2024-02-16 21:59:45 +01:00
iceman1001
c3e269d1b6
took PR #2283 and fixed it up. Added contact inteface to PCSC pass through (@gm3197)
2024-02-10 19:00:01 +01:00
iceman1001
05353deb4a
unified verbose param text and fixed behavior
2024-01-18 19:46:14 +01:00
nvx
d2d6f80d11
Fix some missing frees, null dereferences and missing initialisation picked up by clang-analyzer
2024-01-16 00:22:53 +10:00
iceman1001
fda0968db2
white space and adding hf_unisniff to buildscript
2024-01-02 23:11:51 +01:00
iceman1001
fdc1c9d864
text
2023-12-06 22:16:53 +01:00
wh201906
10ab013f5b
Use defined return value
2023-11-25 11:09:16 +08:00
wh201906
493383c995
Fix ExchangeAPDUSC() in cmdsmartcard.c
...
It doesn't return 1 if the retry fails, which is different from the
behavior of the first try.
2023-11-24 22:20:26 +08:00
Philippe Teuwen
97f2770982
Ignore mbedtls header sitch-enum warnings
2023-11-13 09:25:41 +01:00
Grayson Martin
e65263c73b
run make style
2023-11-11 14:32:09 -06:00
Grayson Martin
db3c86958a
implement smartcard daemon relay for iso14b cards
2023-11-11 14:30:31 -06:00
Grayson Martin
4e346e8ca2
Merge branch 'master' into smartcard-relay
2023-11-11 13:05:11 -06:00
iceman1001
b0ee6ae67b
fixes ntag424
2023-10-30 12:55:23 +01:00
iceman1001
4f96d3eb46
style
2023-10-03 17:10:39 +02:00
iceman1001
bb5d61dca7
added some helper functions
2023-10-01 13:05:08 +02:00
iceman1001
1234b08132
adapt to new sim module firmware version
2023-09-28 08:46:04 +02:00
iceman1001
44fe3ec38f
smart raw --timeout parameter
2023-09-27 22:09:01 +02:00
iceman1001
b6e1344e1c
added a custom timeout parameter to the smart raw command
2023-09-16 18:38:53 +02:00
iceman1001
d7f306084a
colors for kiwi
2023-09-15 21:48:57 +02:00
Grayson Martin
8af75cb220
make style
2023-07-11 15:42:30 -05:00
Grayson Martin
dfc7104799
add additional info to smart relay cmd help text
2023-07-11 15:26:50 -05:00
Grayson Martin
8bb4949016
Finish initial implementation
2023-07-11 15:11:01 -05:00
Grayson Martin
7028944ee0
Begin cmd
2023-07-11 10:55:43 -05:00
zebbe94
ee8759bc8b
fix typo
2023-01-16 01:06:12 +01:00
iceman1001
e364d7e03d
add updated sim module firmware v4.13, this is breaking change for smart category commands
2022-12-09 07:36:02 +01:00
iceman1001
53b2909f04
prepping for sim module firmware upgrade file
2022-12-05 22:32:40 +01:00
Jean-Michel Picod
5bd6379b5b
Move message to debug
2022-12-05 22:05:23 +01:00
Jean-Michel Picod
83e6b223c4
Adapt ARM code to comply with SIM module firmware 4.12
2022-12-05 19:35:11 +01:00
Jean-Michel Picod
b70320d47d
Fixing some ISO7816-4 logic.
...
- Fixing overflow in BigBuffer if requesting to much data
- Fixing integer wrapping with the SIM module by capping APDU data
length
- Fixing chaining logic which was loosing previously received data
2022-12-05 10:54:38 +01:00
iceman1001
811f76785d
textual
2022-08-22 12:25:25 +02:00
iceman1001
a236604716
style
2022-07-30 20:11:15 +02:00
Philippe Teuwen
30aa7aa7d1
Adapting license headers, WIP
2022-01-08 00:40:52 +01:00
iceman1001
d2c290c7c3
cppcheck fixes for const
2022-01-06 23:20:55 +01:00
iceman1001
77f49c8efc
text - unified
2022-01-01 09:39:05 +01:00
iceman1001
d733a66c7b
smart info, smart reader, now have ATR fingerprinting
2021-10-10 16:15:29 +02:00
Philippe Teuwen
b7ea848f7f
getAtrInfo without regex engine
2021-10-10 12:26:47 +02:00
iceman1001
c93dfb712f
atr fixes and regex test
2021-10-10 11:45:43 +02:00
Philippe Teuwen
d516e37ace
text
2021-09-11 01:32:43 +02:00
Philippe Teuwen
d88c98a786
Reduce scope of a number of globals:
...
APDUInFramingEnable atsFSC uid_label_map apdu_in_framing_enable uidmapping KENC_type KMAC_type jpeg_header jpeg2k_header *card_types card_app2_limit iclass_config_types jooks jooks_figures nfc_secret desdefaultkeys aesdefaultkeys k3kdefaultkeys CardAddresses default_3des_keys default_pwd_pack UL_TYPES_ARRAY UL_MEMORY_ARRAY fdxbCountryMapping translateTable invTranslateTable preamble paradox_lut pcf7931_config config DiArray FiArray FArray crc64_table signalprop
2021-08-21 19:56:07 +02:00
Philippe Teuwen
dc54dd305b
Use CmdTraceListAlias everywhere
2021-04-19 21:43:32 +02:00
iceman1001
007b916643
style
2021-04-08 11:08:39 +02:00
iceman1001
3e1b041ff8
fix coverity CID 317346
2021-04-08 10:37:33 +02:00
iceman1001
8a05a4d1d7
smart raw - now use NG.\nhf iclass config - added more support for keyrollning (WIP)\n
2021-04-08 09:34:11 +02:00
iceman1001
d19da982f0
looping for smart card, inverted the silent to verbose, updated cardhelper stuff
2021-04-04 17:01:43 +02:00
iceman1001
3b944adbd0
text
2021-04-04 11:31:48 +02:00
iceman1001
758488f377
text
2021-03-29 10:38:47 +02:00
Philippe Teuwen
f2bc066858
make style
2021-01-14 11:39:45 +01:00