diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-04 18:32:55 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-04 18:32:55 +0000 |
commit | e040ff88ba02058192f90503f6270d72fddd8d41 (patch) | |
tree | f738a9943416c1f75808c57cc6d67f2fc810ea5c /bruiser/bruisercapstone.h | |
parent | wip-the lua syntax is not what i want to be yet and im having trouble with th... (diff) | |
download | mutator-e040ff88ba02058192f90503f6270d72fddd8d41.tar.gz mutator-e040ff88ba02058192f90503f6270d72fddd8d41.zip |
the jmp table is working now. you get member set and get methods, and an iterator. you can demo2 in the lua scripts folder for a test.
Diffstat (limited to 'bruiser/bruisercapstone.h')
-rw-r--r-- | bruiser/bruisercapstone.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bruiser/bruisercapstone.h b/bruiser/bruisercapstone.h index 1b4879f..8d97220 100644 --- a/bruiser/bruisercapstone.h +++ b/bruiser/bruisercapstone.h @@ -18,6 +18,9 @@ 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 "./lua-5.3.4/src/lua.h" +#include "./lua-5.3.4/src/lauxlib.h" +#include "./lua-5.3.4/src/lualib.h" #include <capstone/capstone.h> #include <keystone/keystone.h> #include <stdint.h> @@ -62,7 +65,7 @@ void leb128_decode_u(uint32_t value, uint8_t* ret_value, size_t size); int ks_write(ks_arch arch, int mode, const char* assembly, int syntax, unsigned char* encode); int global_rewriter(int offset, size_t size, uint8_t* asm_code, const char* obj); int call_rewriter(int offset, size_t size, uint8_t* asm_code, const char* obj); -JMP_S_T* makejmptable(size_t size, uint8_t* obj, bool Verbose); +JMP_S_T* makejmptable(size_t size, uint8_t* obj, bool Verbose, lua_State* __ls); int freejmptable(JMP_S_T* _head); int dumpjmptable(JMP_S_T* head); void jmprewriter_j(JMP_S_T* jmp, uint8_t* code, JMP_T type, uint8_t* rewritten); |