From e5f219865377cd2cc2b80db10bfca2f46cb9f364 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 10 Dec 2017 09:18:16 +0100 Subject: [PATCH] FIX: scripting, faulty command vaule for darkside attack. --- client/scripting.c | 2 +- client/scripting.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/scripting.c b/client/scripting.c index a577e24c6..68037e4e6 100644 --- a/client/scripting.c +++ b/client/scripting.c @@ -151,7 +151,7 @@ static int returnToLuaWithError(lua_State *L, const char* fmt, ...) { static int l_mfDarkside(lua_State *L){ uint32_t blockno = 0; - uint32_t keytype = 60; + uint32_t keytype = MIFARE_AUTH_KEYA; uint64_t key = 0; size_t size; diff --git a/client/scripting.h b/client/scripting.h index 6dd20ddcb..b0da5cb61 100644 --- a/client/scripting.h +++ b/client/scripting.h @@ -29,6 +29,7 @@ #include "cmdcrc.h" #include "cmdhfmfhard.h" #include "cmdhfmfu.h" +#include "protocols.h" #define LUA_LIBRARIES_DIRECTORY "lualibs/" #define LUA_SCRIPTS_DIRECTORY "scripts/"