Anže Jenšterle
cd36770c5e
make style
2021-02-09 16:56:55 +01:00
iceman1001
ea5625c304
chg: cliparse error message unified to pm3 style
2021-01-29 20:35:18 +01:00
iceman1001
fdcc4b741c
fix lf em 4x05 write - pwd/data. t55xx chk - now uses cliparser, and color to cliparser empty message
2021-01-27 22:52:08 +01:00
iceman1001
05c5985073
fix #1173 - added guards
2021-01-26 10:47:55 +01:00
iceman1001
c571b1e0ad
hf mf hardnested - clear these too
2021-01-25 20:59:32 +01:00
iceman1001
2305411a1d
hf mf hardnested - added missing init
2021-01-25 19:38:47 +01:00
iceman1001
078a28550f
hf mf hardnested - these are called with u16 in the source
2021-01-25 14:28:47 +01:00
iceman1001
2987fdb187
added warning prefix
2021-01-23 19:08:45 +01:00
iceman1001
ad1f3eae57
added some supprt fct for cliparser, to take a hex byte param and fall back to a default value, or specify how many bytes the param must be
2021-01-11 23:29:49 +01:00
iceman1001
f8c956e4ce
less printf
2020-11-13 16:05:02 +01:00
Philippe Teuwen
eadacd82f5
SWIG experiments
...
Squash of the following commits (a full rebase was too hard :( )
* ef309cfdf
N - SWIG: create pm3.c (5 months ago) <Philippe Teuwen>
* 05ba6a73f
N - swig pm3_device -> pm3 (5 months ago) <Philippe Teuwen>
* d59630183
N - swig: move pm3.i (5 months ago) <Philippe Teuwen>
* 6adcfad75
N - Fix historic make & cmake (5 months ago) <Philippe Teuwen>
* bcbef2edf
N - Fix typo with script_embedded (5 months ago) <slurdge>
* 538ee4dab
N - Better SWIG integration: autogen func & attributes (5 months ago) <slurdge>
* 756b62466
N - SWIG: few helper scripts (5 months ago) <Philippe Teuwen>
* 47ba4acd0
N - SWIG %extend (5 months ago) <Philippe Teuwen>
* 21841cb9d
N - simplify scripts (5 months ago) <Philippe Teuwen>
* 78c4f7929
N - Revert "SWIG experiments: introduce context" (5 months ago) <Philippe Teuwen>
* 1562b75fc
N - SWIG experiments: introduce context (5 months ago) <Philippe Teuwen>
* a503dfcd9
N - SWIG experiments (5 months ago) <Philippe Teuwen>
2020-11-10 23:27:21 +01:00
Philippe Teuwen
777cb5a8ce
make style
2020-11-02 01:46:47 +01:00
iceman1001
1732242ca4
only convert if there actually was a hexstring
2020-10-21 13:25:29 +02:00
Philippe Teuwen
edda8adbc5
cmake: Add ISOC99 to cliparser for %zu
2020-10-21 10:02:32 +02:00
Philippe Teuwen
e4aec4d282
Add ISOC99 to cliparser for %zu
2020-10-21 09:59:29 +02:00
iceman1001
be8d2fbd25
add u64_from_hex, no need to use 0x, thanks @mwalker33!\n reverse blocks when cloning for em4305/4469
2020-10-21 08:42:33 +02:00
Philippe Teuwen
183b375e27
fix cmake bug for cmake >= 3.18
2020-10-20 18:55:03 +02:00
Philippe Teuwen
29f1147aad
make style
2020-10-20 01:00:23 +02:00
iceman1001
c2d5a7d745
cliparser, making sure both hex and string arrays fits into max size of 256 bytes
2020-10-17 16:16:07 +02:00
mwalker33
bb59250eca
Cliparser fix
...
Fix CLIGetStrwithRetrun
Allows casting and requires the buffer length to be passed in.
Existing uses of the function have been updated.
2020-10-17 00:27:14 +02:00
Philippe Teuwen
3872b5bd66
Move back jansson_path as it's not part of upstream and breaks usage of system jansson lib
2020-10-07 01:11:40 +02:00
iceman1001
a659e24064
text
2020-10-06 23:20:50 +02:00
iceman1001
f856087aa9
move jansson files from client
2020-10-06 21:45:32 +02:00
iceman1001
64f9bb5e01
style
2020-10-06 18:00:00 +02:00
iceman1001
4eb11f470d
reveng mem leaks
2020-10-06 17:14:10 +02:00
iceman1001
01c35a9bfb
style
2020-10-06 16:17:57 +02:00
Philippe Teuwen
0339667e9e
cliparser: ignore extra spaces between options
2020-10-04 20:33:56 +02:00
iceman1001
4f4593d9fa
remove debugstatement
2020-10-04 18:54:43 +02:00
iceman1001
166e626c98
add u64_y support in argtable-cliparser.
2020-10-04 17:41:04 +02:00
iceman1001
ad494a152c
cliparser returns signed ints, to get unsigned 32 we need to use the double.
2020-10-04 16:13:17 +02:00
Philippe Teuwen
aa3d29e6ac
CLIParamStrToBuf: add string null terminator
2020-10-04 15:11:36 +02:00
iceman1001
dc9e16a4e1
add some defines to get double
2020-10-04 10:57:21 +02:00
mwalker33
68f0945d48
Update argtable3.c
...
Remove = when only long option
2020-10-03 20:21:16 +10:00
iceman1001
670e2fb6b0
standard form output (concatenated)
2020-10-03 11:48:52 +02:00
mwalker33
e6398674b0
Cliparser cleanup
...
Update to remove "=" from help text
update md file, fix typos and better notses for the options.
2020-10-03 19:06:01 +10:00
Philippe Teuwen
c3c59e35cb
make style
2020-09-30 14:27:19 +02:00
mwalker33
e724204978
cliparser cleanup 2
...
cmdhf14a.c, cmdhfido.c, cmdhficlass.c, cmdhfmf.c
menu help updates.
cliparser.c : tweak for readability with long examples.
2020-09-30 16:39:08 +10:00
mwalker33
561c5f779e
cliparser cleaning
...
checked cmdhf.c and cmddata.c and tweaked cliparser.c
2020-09-30 07:55:51 +10:00
mwalker33
38358e2e2a
Update cliparser.c
...
Change white to default user color
2020-09-30 07:28:05 +10:00
mwalker33
45ca5c416d
Update cliparser.c
...
Adjusted to meet RRG format style and color.
2020-09-29 20:21:34 +10:00
Ave
9c5c00d620
Allow writes up to 256 bytes with mfdes writedata
...
And change help text to say 256 instead of 0xFFFF.
Closes #977
2020-09-27 19:40:13 +03:00
Philippe Teuwen
e9f84f1e2d
noprintf: fix cmake
2020-08-29 22:54:55 +02:00
iceman1001
dfaba2ee8c
no printf
2020-08-29 16:15:04 +02:00
Philippe Teuwen
b2a6fca0ee
Fix bug when cmake android and CMAKE_BUILD_TYPE=Release, see comments:
...
The presence of "filter" from crypto1.c as an exported function depends on the chosen compilation optimization level.
So if the common/crapto1/ and the code using it (here hardnested) are not using the same level, there will be a mismatch,
in this case hardnested_bruteforce.c expecting crypto1.c to provide filter()
2020-06-18 19:27:33 +02:00
iceman1001
61be7c7c30
chg: cliparse should have atleast same file_max_path_len
2020-06-10 13:31:57 +02:00
Philippe Teuwen
cb614f3f11
cliparser: generalize ctx usage
2020-06-10 11:34:33 +02:00
Philippe Teuwen
569107579e
Fix cliparser buffer allocation
2020-06-10 11:33:15 +02:00
Philippe Teuwen
c76b3061da
Fix more deps/liblua Android cross-compilation
2020-06-08 20:20:16 +02:00
Philippe Teuwen
526407ed5c
Fix deps/liblua Android cross-compilation
2020-06-08 19:18:08 +02:00
Philippe Teuwen
224cb2ffd7
make style
2020-06-08 03:15:10 +02:00