From b72238e4056bc8f28c53f42f186bd385cc81ba12 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 1 Mar 2018 18:07:53 +0330 Subject: wip-the asm rewriter module plus the assembly jump table lua module implementation --- bruiser/lua-scripts/xobj.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bruiser/lua-scripts/xobj.lua') diff --git a/bruiser/lua-scripts/xobj.lua b/bruiser/lua-scripts/xobj.lua index 880730a..81d0bc0 100644 --- a/bruiser/lua-scripts/xobj.lua +++ b/bruiser/lua-scripts/xobj.lua @@ -133,6 +133,14 @@ function xobj.getTextSection() return objload("elf_get_text_section", elf_exe, "bytes") end +function xobj.CSDump(code) + ret = "" + for k,v in pairs(code) do + ret = ret.."\\x"..string.format("%02x",v) + end + return ret +end + --end of xobj module return xobj -------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3