diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-08 22:44:20 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-08 22:44:20 +0000 |
commit | 2cd674dac75855c35373d3e6b89359f3e89b1178 (patch) | |
tree | 6fd311b001c475c0a5ccdab4488c31f36be93248 /bruiser/lua-scripts/asmrw.lua | |
parent | some cosmetic changes and makefile fixes (diff) | |
download | mutator-2cd674dac75855c35373d3e6b89359f3e89b1178.tar.gz mutator-2cd674dac75855c35373d3e6b89359f3e89b1178.zip |
jmp_t_s now uses the new way of registering tables, the 5.3 way. bruiser is supposed to be luarocks-friendly so i wont remove the compatibility build.
Diffstat (limited to '')
-rw-r--r-- | bruiser/lua-scripts/asmrw.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bruiser/lua-scripts/asmrw.lua b/bruiser/lua-scripts/asmrw.lua index b8de4c5..07844ca 100644 --- a/bruiser/lua-scripts/asmrw.lua +++ b/bruiser/lua-scripts/asmrw.lua @@ -22,14 +22,14 @@ xobj = require("xobj") -- this will hold a copy of the original text section local text_buffer = {} -setmetatable(jmp_s_t, {__call = - function(self, arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) - local t = self.new(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) - print("created", t) - return t - end - } -) +--setmetatable(jmp_s_t, {__call = + --function(self, arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) + --local t = self.new(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) + --print("created", t) + --return t + --end + --} +--) function asmrw.strings(exe) io.write(colors("%{cyan}".."lua:getting text section...\n")) @@ -48,10 +48,10 @@ end function asmrw.strings_deep(exe) end -function jmp_s_t:dump(msg) - print(msg, self:custom()) - return self -end +--function jmp_s_t:dump(msg) + --print(msg, self:custom()) + --return self +--end function asmrw.get_head(elf_exe) local text_section = xobj.getTextSection(elf_exe) |