Jump to content
  • 0

Can someone send a function to replace a offset to false?


douglaspo

Question

8 answers to this question

Recommended Posts

Posted
On 11/1/2023 at 8:16 PM, kiynox said:

[ @douglaspo ]
---
You're being weirdly vague. We need context for what this "offset" is. So is this what you mean?

gg.setValues( {{["address"]= base_address + offset, ["value"] = 1, ["flags"] = gg.TYPE_DWORD}} )

---
Since you're mentioning Offset, do you refer it to Unity games or anything in general? Anyway, just some summary:

  • - Boolean (True/False) are integer (Dword):
  • - 0 as false and 1 as true

---

Its a Unity game, in past i use some arm things to change a boolean to false, like the offset and the one more address to change it, and now im searching how to do the same

Posted

but in my case i need to change a value inside a void function:
 

Quote

 

    // RVA: 0xFA626C Offset: 0xFA626C VA: 0xFA626C

    public void ActiveAura(bool arg) { }

 



edit the "bool arg"

Posted
11 hours ago, douglaspo said:

but in my case i need to change a value inside a void function:
 



edit the "bool arg"

 

X1 or w1 = arg1 and you type bool 

So edit x1/w1 to #1 (true) and xzr/wzr for (false) andthis for arm64

Posted
On 11/3/2023 at 11:29 AM, SYLVIA said:

 

X1 or w1 = arg1 and you type bool 

So edit x1/w1 to #1 (true) and xzr/wzr for (false) andthis for arm64

is possible edit a string with arm?

Posted

Hi @douglaspo, some additional context, you might able to edit void methods by:

  • Using ARM Patching, since there's only one parameter:
# ARM32, Armeabi
Instruction:
MOV R0, #1/0
BX LR
Hex:
01/00 00 A0 E3
1E FF 2F E1

# ARM64, Armv8
Instruction:
MOV X0, #1/0
RET
Hex:
20/00 00 80 D2
C0 03 5F D6

*WZR is equal to 0 since it's zero value register
  • Find "bool arg"  field and edit it accordingly. Void methods is loading value from somewhere, find them.

===

Quote

is possible edit a string with arm?

You can. Since this is Unity game, I recommend to use: GGIL2CPP or read: Long Name.
===

Posted

I think offset value cannot be a boolean type (false/true) It's number (0xFFFF or 11111)

But you can change the value if something false/true

Quote
if val == true then
	offset = 0xFFFF
end
if val == false then
	offset = 11111
end

 

 

Posted

[ @douglaspo ]
---
You're being weirdly vague. We need context for what this "offset" is. So is this what you mean?

gg.setValues( {{["address"]= base_address + offset, ["value"] = 1, ["flags"] = gg.TYPE_DWORD}} )

---
Since you're mentioning Offset, do you refer it to Unity games or anything in general? Anyway, just some summary:

  • - Boolean (True/False) are integer (Dword):
  • - 0 as false and 1 as true

---

Archived

This topic is now archived and is closed to further replies.

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