Jump to content
TheParadigm

gotoAddress usage

Recommended Posts

I know the specific address I want to go to and edit a value at.

What's the usage of gotoAdress can I do the below?

 

        gg.gotoAddress(0x874C368)	
        gg.getResults(1) 
        gg.editAll(999999, gg.TYPE_FLOAT)

 

Share this post


Link to post
Share on other sites

Is there a way to calculate offset from script?

 

Here is my process I'm trying to replicate in Lua

  • Press Goto
  • Press Xa
  • Select il2cpp.dll
  • Select the top line 
  • Click Offset calculator
  • Put in the method offset
  • Edit the value at the offset

 

Share this post


Link to post
Share on other sites

Yes.

use getRangesList for get lib address, add offset and use setValues.

Share this post


Link to post
Share on other sites
24 minutes ago, Enyby said:

Yes.

use getRangesList for get lib address, add offset and use setValues.

Apologies if it's a stupid question but how do I add the offset? 

Share this post


Link to post
Share on other sites

As an example my base address is 08000000 if I do goto and select il2cpp.so and my offset is 0x74C368

In code I've tried doing 

local result = gg.getRangesList('libil2pp.so')
local addr = result[1].start + 0x74C368
print(result)

But this doesn't give me the final address of the correct one to modify

Share this post


Link to post
Share on other sites

You print result in decimal. You view address in memory editor in hex. So you decide it is not match. Firstly convert to hex, before compare and make decision.

Also you make typo: libil2cpp.so i think.

Share this post


Link to post
Share on other sites

-- Scrit edited ( Bymeto ) 

-- example Script

 

-- we enter our dong
if gg.isVisible(true) then
  gg.setVisible(false)
end

gg.setRanges(gg.REGION_CODE_APP) 
-- memory select

-- Hex code enter ( Byte) 
-- I use bytes because it scans the fastest --byte values
gg.searchNumber("h 00 2A 9D ED 0D 1A 94 ED 00 0A 22 EE 01 8A 9D ED 01 9A 20 EE 52 C3 00 EB", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)

z = gg.getResults(1,20)
-- we determine what value to consider in the -- scan

gg.addListItems(z)
 -- we record the value we choose

gg.clearResults()  
-- we delete the values we scanned

on = 'ON'
off = 'OFF'
aim = on
--We specify the switch button


gg.setVisible(true)
while (true) do
if gg.isVisible(true) then
gg.setVisible(false)

-- we enter our dong

menu = gg.multiChoice({
aim.." Aim Lock",
"Exit"},nil,
[[Test Menu]])
-- We create our table

if menu == nil then else
--Pressing a blank screen or cancel key --prevents it from failing


if menu [1] then  -- If the menu clicks 1

if aim == on then -- Set the Aim button on

aim = off -- If Aim is off

gg.getListItems(z)  --the value in the
 -- z variable we recorded

z[1].flags = gg.TYPE_DWORD --Go to Dword

z[1].value = 'E3A0043Fh' --replace value with this
gg.setValues(z) 

gg.toast('Aimlock Activated') --write bla bla -- because the goal was activated


-- You guess the rest
else  
aim = on  
gg.getListItems(z)
z[1].value = 'EB00C352h'
gg.setValues(z)
gg.toast('AimLock  Deactivated')
end
end
if menu [2] then break end end
gg.sleep(250)
end end
 

Share this post


Link to post
Share on other sites

Upload script making method gob...

Share this post


Link to post
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

×
×
  • Create New...