2013-05-25 05:06:57 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2013 m h swende <martin at swende.se>
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Some lua scripting glue to proxmark core.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef SCRIPTING_H__
|
|
|
|
#define SCRIPTING_H__
|
|
|
|
|
2017-07-28 02:58:59 +08:00
|
|
|
#include <stdlib.h>
|
2013-05-25 05:06:57 +08:00
|
|
|
#include <lua.h>
|
2016-02-23 00:50:32 +08:00
|
|
|
#include <lualib.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
#include "proxmark3.h"
|
|
|
|
#include "usb_cmd.h"
|
|
|
|
#include "cmdmain.h"
|
2018-09-07 03:43:20 +08:00
|
|
|
#include "comms.h"
|
2016-02-23 00:50:32 +08:00
|
|
|
#include "util.h"
|
2019-02-22 01:15:46 +08:00
|
|
|
#include "mifare/mifarehost.h"
|
2017-12-24 17:28:46 +08:00
|
|
|
#include "crc.h"
|
|
|
|
#include "crc16.h"
|
|
|
|
#include "crc64.h"
|
2018-11-08 00:20:24 +08:00
|
|
|
#include "mbedtls/sha1.h"
|
|
|
|
#include "mbedtls/aes.h"
|
2016-02-23 00:50:32 +08:00
|
|
|
#include "cmdcrc.h"
|
2016-11-21 23:08:12 +08:00
|
|
|
#include "cmdhfmfhard.h"
|
2017-11-26 14:08:27 +08:00
|
|
|
#include "cmdhfmfu.h"
|
2017-12-10 16:18:16 +08:00
|
|
|
#include "protocols.h"
|
2019-04-04 01:48:00 +08:00
|
|
|
#include "cmdlft55xx.h" // read t55xx etc
|
2017-02-24 21:59:38 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
#define LUA_LIBRARIES_DIRECTORY "lualibs/"
|
|
|
|
#define LUA_SCRIPTS_DIRECTORY "scripts/"
|
|
|
|
#define LUA_LIBRARIES_WILDCARD "?.lua"
|
2017-02-24 21:59:38 +08:00
|
|
|
|
2013-05-25 05:06:57 +08:00
|
|
|
/**
|
|
|
|
* @brief set_libraries loads the core components of pm3 into the 'pm3'
|
|
|
|
* namespace within the given lua_State
|
|
|
|
* @param L
|
|
|
|
*/
|
|
|
|
|
2013-05-27 04:05:13 +08:00
|
|
|
int set_pm3_libraries(lua_State *L);
|
2013-05-25 05:06:57 +08:00
|
|
|
|
|
|
|
#endif
|