Jump to content
  • 0

arm edit


blocx
 Share

Question

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

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0
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"}})
Link to comment
Share on other sites

  • 0

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 )

grenade bc.lua

if is needed game is 

 https://play.google.com/store/apps/details?id=com.vng.g6.a.zombie

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • -1
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
Link to comment
Share on other sites

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