Jump to content
  • 0

offset from lib


Question

Posted (edited)

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

Recommended Posts

  • 0
Posted

thanks

7 minutes ago, MonkeySAN said:

as @Platonic had suggested..

IMG_20221013_012613.thumb.jpg.fe5257ea44c83e84b2f411b47cdc7188.jpg

Xa region in 'libil2cpp.so' start at 2

hence the = 'libil2cpp.so'[2].start

how u do to have this ?

  • 0
Posted (edited)
30 minutes ago, Platonic said:

 

print(gg.getRangesList("libil2cpp.so"))

 

☝️☝️☝️☝️☝️☝️

a simple script with above written..just like that.

Edited by MonkeySAN
  • 0
Posted
13 hours ago, MonkeySAN said:

☝️☝️☝️☝️☝️☝️

a simple script with above written..just like that.

just need these code ?

  • 0
Posted (edited)
8 minutes ago, blocx said:

just need these code ?

yep.

print(gg.getRangesList("libil2cpp.so"))

just this.

Edited by MonkeySAN
  • 0
Posted
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

  • 0
Posted
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

  • 0
Posted (edited)
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

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
×
×
  • 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.