From e106a5717c7c464751aa28d1c2160b61992d5f41 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 26 May 2020 12:17:41 +0200 Subject: [PATCH] simple script working --- client/pyscripts/ice.py | 5 +++++ client/src/cmdscript.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 client/pyscripts/ice.py diff --git a/client/pyscripts/ice.py b/client/pyscripts/ice.py new file mode 100644 index 000000000..a9d486813 --- /dev/null +++ b/client/pyscripts/ice.py @@ -0,0 +1,5 @@ + +lrc= 0x00 +for i in range(5): + lrc ^= 42 +print('\n final LRC XOR byte value: %02X\n' % (lrc)) diff --git a/client/src/cmdscript.c b/client/src/cmdscript.c index f8fde1a40..b5929c0ae 100644 --- a/client/src/cmdscript.c +++ b/client/src/cmdscript.c @@ -185,13 +185,8 @@ static int CmdScriptRun(const char *Cmd) { */ #ifdef HAVE_PYTHON - - PrintAndLogEx(SUCCESS, "script engine detected: %s", ( ext == PM3_PY) ? "PYTHON" : ( ext == PM3_CMD) ? "CMD" : "LUA"); - PrintAndLogEx(SUCCESS, "script engine, folder %s", PYTHON_SCRIPTS_SUBDIR); if ((ext == PM3_PY) && (searchFile(&script_path, PYTHON_SCRIPTS_SUBDIR, preferredName, ".py", true) == PM3_SUCCESS)) { - - PrintAndLogEx(SUCCESS, "ICE"); PrintAndLogEx(SUCCESS, "executing python s " _YELLOW_("%s"), script_path); PrintAndLogEx(SUCCESS, "args " _YELLOW_("'%s'"), arguments);