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
1 hour ago, blocx said:

thx i test that

still error

Screenshot_20221012-152127_VMOS Pro.jpg

Hi! could it the script confused by one-liner? You might want to try this:
 

function setprops(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 
setprops(so+py,4,1384440288)
  • - Fixed Indentation
  • - Changing Function Name
Edited by MainC
Link to comment
Share on other sites

  • 0
2 hours ago, blocx said:

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} })

 

You will get the wrong path name. Remove the double point in that string. You have:

"libil2cpp.so:"

Do:

"libil2cpp.so"

Should solve the issue.

Link to comment
Share on other sites

  • 0

The script is fine when you remove that double point, if not removed you start address will be at Cb. So use print() to see what is happening. Then we also can stop guessing and wasting your time.

Try:

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

See which libil2cpp.so is at the top. And if its "state" is "Xa". If its "state" is in a other memory region you will have to apply a filter to your script so that it only takes the libil2cpp address from region Xa.

If not sure you can post the print result here.

Edited by Platonic
Link to comment
Share on other sites

  • 0
39 minutes ago, MonkeySAN said:

try this..?

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

 

it work fine bro thx

why {2] instead {1] ?

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.