MikeFOLO Posted September 23, 2022 Posted September 23, 2022 Hello, I need help on a function that take 'libil2cpp.so' the target offset for example 0x46992E0 the value to change 'D65F03C0h' and the type gg.TYPE_DWORD Example: libBase('libil2cpp.so', 0x46992E0, 'D65F03C0h', gg.TYPE_DWORD)
MikeFOLO Posted September 25, 2022 Author Posted September 25, 2022 I add this also : function libBase(lib, off, val, type) local a = 0; for i, v in ipairs(gg.getRangesList(lib)) do if v.state == "Xa" then a = v.start + off; break end end if a == 0 then return print("Not found lib"); end local addr = {{ address = a, flags = type, value = val .. "h" }}; gg.setValues(addr); end
THETWINSOFFICIAL Posted September 26, 2022 Posted September 26, 2022 On 9/23/2022 at 6:08 PM, MikeFOLO said: Hello, I need help on a function that take 'libil2cpp.so' the target offset for example 0x46992E0 the value to change 'D65F03C0h' and the type gg.TYPE_DWORD Example: libBase('libil2cpp.so', 0x46992E0, 'D65F03C0h', gg.TYPE_DWORD) Use code arm bro
MC874 Posted September 24, 2022 Posted September 24, 2022 Hi! You can use template script for offset patching from here: Il2Cpp Hex Patch via GG function libBase(lib, offset,hex) gg.setVisible(false) local targetAddr = 0 local hexStrCount = #hex:gsub(" ", "") if hexStrCount%2~=0 then return print("Check your hex again. Something wrong there") end local hexCount = hexStrCount/2 for i, v in ipairs(gg.getRangesList(lib)) do if v.type:sub(3,3) == "x" then targetAddr=v.start+offset break end end local editHex = {} for i=1, hexCount do editHex[i] = {address=targetAddr+(i-1), flags=gg.TYPE_BYTE} end gg.loadResults(editHex) gg.getResults(hexCount) local edit = "h"..hex gg.editAll(edit,1) gg.clearResults() end --[[Use it as a code eg libBase("libil2cpp.so",0x46992E0,"D6 5F 03 C0") ]] *The script are derived from @DARK_DEMON_SCRIPTER with little adjustment to suits your goal. Quote the value to change 'D65F03C0h' It's an array of bytes/hex string of D6 5F 03 C0, Is this what you means by dword? or do you wan't to change that hex into dword?
Question
MikeFOLO
Hello,
I need help on a function that take 'libil2cpp.so' the target offset for example 0x46992E0 the value to change 'D65F03C0h' and the type gg.TYPE_DWORD
Example:
libBase('libil2cpp.so', 0x46992E0, 'D65F03C0h', gg.TYPE_DWORD)
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.