aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/lua-scripts/xobj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser/lua-scripts/xobj.lua')
-rw-r--r--bruiser/lua-scripts/xobj.lua8
1 files changed, 8 insertions, 0 deletions
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
--------------------------------------------------------------------------------------------------------------