diff options
author | bloodstalker <thabogre@gmail.com> | 2017-12-08 18:38:03 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-12-08 18:38:03 +0000 |
commit | 9244662e10c43e403c97be00d78b2c320d98d05c (patch) | |
tree | e425587ef585ef2cb7573b779ea4e9e7b1b2d63a /bruiser/executioner.cpp | |
parent | obfuscator doesnt mess up var declations with init values, python driver has ... (diff) | |
download | mutator-9244662e10c43e403c97be00d78b2c320d98d05c.tar.gz mutator-9244662e10c43e403c97be00d78b2c320d98d05c.zip |
wip
Diffstat (limited to '')
-rw-r--r-- | bruiser/executioner.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/bruiser/executioner.cpp b/bruiser/executioner.cpp deleted file mode 100644 index 5aad56b..0000000 --- a/bruiser/executioner.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -/***************************************************Project Mutator****************************************************/ -//-*-c++-*- -/*first line intentionally left blank.*/ -/*loads the objects into executable memory and registers them with lua.*/ -/*Copyright (C) 2017 Farzad Sadeghi - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*/ -/**********************************************************************************************************************/ -#include <vector> -#include <cstdint> -#include "lua-5.3.4/src/lua.hpp" -/**********************************************************************************************************************/ -namespace { - constexpr int MEMORY_SIZE = 30000; - std::vector<uint8_t> memory(MEMORY_SIZE, 0); -} - -class Executioner { - public: - Executioner() {} - ~Executioner() {} - - void getObjs(std::vector<std::vector<uint8_t>> _objs) { - objs = _objs; - } - - void registerWithLua(lua_State* _lua_State) {} - - private: - std::vector<std::vector<uint8_t>> objs; -}; -/**********************************************************************************************************************/ -/*last line intentionally left blank.*/ - |