Jump to content
  • 0

offset from lib


blocx
 Share

Question

hi some one if something is wrong or missing when i do manualy with gg it load good adress (start lib & 10BBCdC ) but script no go good adress thx

pi = 
gg.getRangesList("libil2cpp.so:")[1].start
local addr = pi + 0x10BBCDC
gg.setValues({ {address = addr, flags = 4, value = 1384440288} })

 

Edited by blocx
error
Link to comment
Share on other sites

Recommended Posts

  • 0
local function getLibStart(lib)
  local ranges = gg.getRangesList(lib)
  if (#ranges == 0) then
    return nil
  end
  for i, v in ipairs(ranges) do
    if (v.state == "Xa") then
      return v.start
    end
  end
end

local libStart = getLibStart("libunity.so")

This way your start address will always be the right one

Link to comment
Share on other sites

  • 0
On 10/12/2022 at 3:01 PM, RealWanteD said:
function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end 



so=gg.getRangesList('libil2cpp.so')[1].start

py=0x10BBCDC 

setvalue(so+py,4,1384440288)

 

bro can u add an edit & 0x4 

i need edit value and value &4

thanks

Link to comment
Share on other sites

  • 0
7 hours ago, blocx said:

i need edit value and value &4

I don't understand

This: 

Quote

setvalue(so+py,4,1384440288)

To edit 4(dword),13844..(value)

Is this what you meant?

Or you want to edit 2 values at the same time?

If you want to edit 2 values you simply can do the same thing with offset too!

 

Like this

Quote

-- Value 1

so=gg.getRangesList('libil2cpp.so')[1].start

py=0xOffset 

setvalue(so+py,4,1384440288) -- edit

-- value 2

so=gg.getRangesList('libil2cpp.so')[1].start

py=0xOffset

 setvalue(so+py,4,1384440288) -- edit

end

 

Edited by RealWanteD
Wrong spelling lol
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.