Jump to content
  • 0

Question

Posted

hi all someone can tell me how to write this kind of edit " ~A8 MOV W0, #999 " when adress is comes from lib ? @BadCase how to make single function ( no on off ) with info of output script ( with tool box ) exemple lib & offset edit arm thx

13 answers to this question

Recommended Posts

  • 0
Posted

its possible in less complex like this ? :

exemple

pi = 
gg.getRangesList("libil2coo.so")[2].start
local addr = pi + 0x14BB114 
gg.setValues({ {address = addr, flags = 4, value = 127} })
 

but with edit like this 

~A8 MOV W0, #999

  • 0
Posted
48 minutes ago, blocx said:

its possible in less complex like this ? :

Yes, just use that edit string as "value" field. For example: 

local libStartAddress = gg.getRangesList("libil2cpp.so")[2].start
local targetAddress = libStartAddress + 0x14BB114 
gg.setValues({{address = targetAddress, flags = gg.TYPE_DWORD, value = "~A8 MOV W0, #999"}})
  • 0
Posted (edited)

If I understood correctly, it's because you also need to edit next instruction to "RET" for your patch to work as expected. The example above can be modified to do that: 

local libStartAddress = gg.getRangesList("libil2cpp.so")[2].start
local targetAddress = libStartAddress + 0x14BB114 
gg.setValues({
    {address = targetAddress, flags = gg.TYPE_DWORD, value = "~A8 MOV W0, #999"},
    {address = targetAddress + 4, flags = gg.TYPE_DWORD, value = "~A8 RET"}
})

Edit: corrected mistake in previous version of the code

Edited by CmP
Fixed the code
  • -1
Posted (edited)
20 minutes ago, blocx said:

thanks bro it edit right value but i dont understand why in this way it freeze game i try to adapt this in minimize way  script i share not freeze game but i think many code inside im no need ( no need on off)

hmm...

i guess you dont read my message(pm)?

that should be solved the crash problem as @CmP suggest

8 minutes ago, CmP said:

If I understood correctly, it's because you also need to edit next instruction to "RET" for your patch to work as expected. The example above can be modified to do that: 

local libStartAddress = gg.getRangesList("libil2cpp.so")[2].start
local targetAddress = libStartAddress + 0x14BB114 
gg.setValues({{
    address = targetAddress, flags = gg.TYPE_DWORD, value = "~A8 MOV W0, #999",
    address = targetAddress + 4, flags = gg.TYPE_DWORD, value = "~A8 RET"
}})

 

Edited by MonkeySAN
the grenade one
  • -1
Posted (edited)
36 minutes ago, blocx said:

omg it still crash game 😕

here is my take..same like @CmP one

local pi= gg.getRangesList("libil2cpp.so")[2].start
local addr = pi + 0x10BBCDC

gg.setValues({
   {address = addr, flags = 4, value = 1384440288},
   {address = addr + 0x4, flags = 4, value = -698416192} 
})

gg.toast("Done")

for the Grenade.

tested it many times now...no crash.

Edited by MonkeySAN
  • 0
Posted

so thx it work but this comes to me one question if i want use this in other function i need to edit value i must edit adress and next adress its right ?

  • 0
Posted
45 minutes ago, blocx said:

omg it still crash game 😕

There was a mistake in my last example. Edited the post with fixed version, so probably it should work as expected now.

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.