mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-15 01:33:00 -07:00
Added binlib, to handle binary data from lua, based on lpack http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lpack
This commit is contained in:
parent
3510cdff4b
commit
f057bddb70
7 changed files with 390 additions and 5 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "cmdmain.h"
|
||||
#include "cmdscript.h"
|
||||
#include "cmdhfmf.h"
|
||||
#include "pm3_binlib.h"
|
||||
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
|
@ -210,6 +211,10 @@ int CmdRun(const char *Cmd)
|
|||
|
||||
//Sets the 'command line' libraries, basically just the commandline stuff
|
||||
set_cmdlibraries(lua_state);
|
||||
|
||||
//Add the 'bin' library
|
||||
set_bin_library(lua_state);
|
||||
|
||||
char cmd_name[32];
|
||||
int len = 0;
|
||||
memset(cmd_name, 0, 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue