iceman1001
b9c020a1dd
coverity 227802 - fix uninitialized
2019-10-09 12:46:01 +02:00
iceman1001
cd0a47308d
coverity 226337 - fix resource leak
2019-10-09 11:47:56 +02:00
Philippe Teuwen
1f364106ce
fix few mem leaks
2019-10-06 01:18:04 +02:00
Philippe Teuwen
843f554503
prevent lua bombs
2019-09-10 12:32:01 +02:00
Philippe Teuwen
d08f03058b
add support for (nested) cmd scripts in script list/run
2019-09-09 23:46:38 +02:00
Philippe Teuwen
2c853d94ea
move hardnested tables to resources/
2019-08-30 09:02:01 +02:00
Philippe Teuwen
ec174a7232
better searchFile api
2019-08-24 07:51:24 +02:00
Philippe Teuwen
b09849c91b
pull filenamemcopy out of searchFile
2019-08-23 23:07:05 +02:00
Philippe Teuwen
34a0fdb9d6
reorganize lua script dir defs
2019-08-23 22:07:45 +02:00
Philippe Teuwen
3ebc00854b
Add searchAndList & searchFile in fileutils
2019-08-22 23:55:37 +02:00
Philippe Teuwen
915c200ebc
luascript: use fileExists
2019-08-22 21:18:37 +02:00
Philippe Teuwen
40b6956a22
script list: print dir tree
2019-08-22 19:53:23 +02:00
Philippe Teuwen
595b8a1885
introduce PREFIX for pm3 system directory and move to common.h
2019-08-22 19:36:20 +02:00
iceman1001
ab38130c3e
chg: some more checks in pathing
2019-08-22 17:44:08 +02:00
Philippe Teuwen
9ae27cd73c
scripts list / scripts run: look also in the new lua scripts paths
2019-08-22 00:32:15 +02:00
Philippe Teuwen
a8ee33baf4
change scripts/ to luascripts/
2019-08-21 23:17:01 +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
ca43afa19b
begin of dynamic capabilities handling in client
2019-05-01 20:48:15 +02:00
Philippe Teuwen
1b6a45ac17
propagate CmdsParse return value
2019-04-19 00:47:51 +02:00
Philippe Teuwen
7d48ad19f9
Rework Cmd exposed API, use more static and fix [-Wmissing-prototypes], ongoing...
2019-04-12 01:00:54 +02:00
Philippe Teuwen
35e97ba96a
static
2019-04-11 00:10:21 +02:00
Philippe Teuwen
cc0454d5d2
tag unused Cmd [-Wunused-parameter]
2019-04-10 12:23:40 +02:00
Philippe Teuwen
7f76fea21a
good const, bad const, fixing -Wincompatible-pointer-types-discards-qualifiers
2019-04-10 10:21:42 +02:00
Philippe Teuwen
1b2601a48a
Add missing EOF LF
2019-03-12 00:12:26 +01:00
Philippe Teuwen
961d929f4d
changing {} style to match majority of previous style
2019-03-10 11:20:22 +01:00
Philippe Teuwen
0373696662
make style
2019-03-10 00:00:59 +01:00
Philippe Teuwen
0d9223a547
client: fix mix of spaces & tabs
2019-03-09 23:35:06 +01:00
Philippe Teuwen
60f292b18e
remove spurious spaces & tabs at end of lines
2019-03-09 08:59:13 +01:00
Chris
24eaac8681
CHG: the thread comms refactoring from offical pm3 repo
...
chg: FPC com speed limited to 115200 when compiled with FPC
chg: USART remake (@drandreas)
2018-09-06 21:43:20 +02:00
iceman1001
207fa2b574
add: potential fix for OSX uses, by @piwi
...
chg: adapting fix to support iceman forks extended commands.
2018-05-02 08:11:29 +02:00
iceman1001
c41013d394
chg: printandlogex now deals with string which has inital newline char.
2018-04-27 11:22:30 +02:00
Brian Pow
7a9612036d
use PrintAndLogEx() instead of PrintAndLog()
2018-02-21 20:56:39 +08:00
iceman1001
374c1b16f6
chg: remove gcc 7.0 warnings
2018-01-26 20:17:56 +01:00
iceman1001
d9089e74b4
chg: textual
2018-01-01 18:54:01 +01:00
iceman1001
982ece97c6
fix...
2017-12-13 20:02:56 +01:00
iceman1001
79ed9c3887
fix: for netbsd ppl, executable dir could be null, (@khorben)
...
8e51b68e83
2017-12-13 19:38:07 +01:00
iceman1001
31191382fc
CHG: adapt to be similar as other cmd*.c files
2017-10-20 14:37:50 +02:00
iceman1001
8f262aa1bf
ADD: num_CPUs(void) method from pm3 master
...
CHG: clean up in util.c
ADD: seems like mingw doesn't have scandir. Had to add one. *untested*
2017-07-27 09:36:16 +02:00
iceman1001
6c4d1560e9
ADD: 'script list' - now sorts the scripts in alphabetic order. It needs the extra define, in order to scandir and alphasort to work.
...
and this made our own version of le32toh function complain. So this is removed from util.c and where it was used a new define replaced it (LE32TOH)
2017-07-23 10:24:30 +02:00
iceman1001
e8015142cd
fix: TRUE/FALSE -> bools
...
fix: 'iclass' filepath 255, to use FILE_PATH_SIZE
fix: unified params test
2017-07-14 20:54:11 +02:00
iceman1001
b804b9cdb8
ADD: @pivipw 's changes "making lua paths".
...
ref:: 4197a3f6ff
This contains a ugly hardcoded hack to solve the issue: https://github.com/Proxmark/proxmark3/issues/217
where GetModuleHandleEx doesn't exist in mingw (old proxspace 2013 environment).
Use the docker container or linux...
2017-02-24 14:59:38 +01:00
iceman1001
bd94b97883
CHG: syntax sugar
2017-02-07 22:26:42 +01:00
iceman1001
5def0b3c74
CHG: increased the script-filename column width from 16 to 21.
2016-08-07 21:05:09 +02:00
iceman1001
4c36581b96
CHG: clearCommandBuffer(); before calling cmdparser.
2016-02-14 15:24:11 +01:00
marshmellow42
e6432f0579
@iceman1001 s coverity scan fixes
2015-05-13 11:14:17 -04:00
martin.holst@gmail.com
77cd612f15
Added a lua bit manipulation library, added Lua-api to iso 15693 crc-calculation
2013-11-06 18:34:10 +00:00
martin.holst@gmail.com
0a85b72549
Reworked how to call 'standard' stuff from within lua scripts, so now it's much simpler both in lines of code and usage. A script can now call core.console('hf mf nested 1 0 a ffffffffffff') in order to execute anything via the old command line parser
2013-10-04 19:29:46 +00:00
martin.holst@gmail.com
42daa759c1
Only superficial changes, to get rid of compiler warnings
2013-09-19 19:53:09 +00:00
martin.holst@gmail.com
30a5d35529
Implemented parameter passing into script, added a minimal getop-parser, added an example script which takes parameters
2013-09-19 19:21:12 +00:00
martin.holst@gmail.com
a403a55959
In the middle of some work to get arguments into scripts. Also fixed so you don't have to specify .lua on 'script run foobar'
2013-09-16 19:04:29 +00:00