diff options
author | bloodstalker <thabogre@gmail.com> | 2018-04-21 12:48:01 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-04-21 12:48:01 +0000 |
commit | 64d1ba4efcd6e2f0d01cbf5bc373c47547a7906d (patch) | |
tree | dfe134f5f96fdf0fca302db6292ef0f58f54a109 /bruiser/lua-scripts/xobj.lua | |
parent | fixed #29 (diff) | |
download | mutator-64d1ba4efcd6e2f0d01cbf5bc373c47547a7906d.tar.gz mutator-64d1ba4efcd6e2f0d01cbf5bc373c47547a7906d.zip |
two more options for load.py. also fixed the default lua script for bruiser. now it works for everyone if luarocks is in path.
Diffstat (limited to 'bruiser/lua-scripts/xobj.lua')
-rw-r--r-- | bruiser/lua-scripts/xobj.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bruiser/lua-scripts/xobj.lua b/bruiser/lua-scripts/xobj.lua index 8453a93..1d1f748 100644 --- a/bruiser/lua-scripts/xobj.lua +++ b/bruiser/lua-scripts/xobj.lua @@ -133,6 +133,10 @@ function xobj.getTextSection(elf_exe) return objload("elf_get_text_section", elf_exe, "bytes") end +function xobj.getRODataSection(elf_exe) + return objload("elf_get_rodata_section", elf_exe, "bytes") +end + function xobj.CSDump(code) ret = "" for k,v in pairs(code) do |