Commit graph

24 commits

Author SHA1 Message Date
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
martin.holst@gmail.com
f057bddb70 Added binlib, to handle binary data from lua, based on lpack http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lpack 2013-05-26 20:05:13 +00:00
martin.holst@gmail.com
96e7a3a50b Minor fixes, added some functionality to send data, but still some way to go 2013-05-24 21:39:08 +00:00
martin.holst@gmail.com
a0655c45bd Added 'core'-api, also added some error handling in scripts 2013-05-24 21:05:45 +00:00
martin.holst@gmail.com
5a92cb525e Fixed so standard libraries can be used, added an example script, and fixed so all hf.mf-ops can be called 2013-05-22 13:04:01 +00:00
martin.holst@gmail.com
806dc07542 First implementation of user scripts - very experimental - YMMV 2013-05-21 18:37:43 +00:00