[Token(Token = "0x17000015")]
public bool IsWin
{
[Token(Token = "0x60000F2")]
[Address(RVA = "0x4DB7F0", Offset = "0x4DB7F0", VA = "0x4DB7F0")]
[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764E4", Offset = "0x2764E4")]
get
{
return default(bool);
}
[Token(Token = "0x60000F3")]
[Address(RVA = "0x4DB7F8", Offset = "0x4DB7F8", VA = "0x4DB7F8")]
[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764F4", Offset = "0x2764F4")]
set
{
}
}
void (*set_IsWin)(void *instance, bool value);
//the void *instance is a self-created variable.
bool (*old_get_IsWin)(void *instance);
bool get_IsWin(void *instance) {
//Check if instance is NULL to prevent CRASH
if (instance != NULL && WinOK)
{
set_IsWin(instance, true); //Function Pointer mod
}
//return the original value (this code isn't really needed if you have a toggle/switch)
return old_get_IsWin(instance);
}
set_IsWin = (void (*)(void *, bool))getAbsoluteAddress(targetLibName,0x4DB7F8);
HOOK_LIB("libil2cpp.so", "0x4DB7F0", get_IsWin, old_get_IsWin);
Please help. I did everything according to the tutorial, but all to no avail. Can you suggest what I did wrong?
This is from dnspy
this is hookC++:[Token(Token = "0x17000015")] public bool IsWin { [Token(Token = "0x60000F2")] [Address(RVA = "0x4DB7F0", Offset = "0x4DB7F0", VA = "0x4DB7F0")] [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764E4", Offset = "0x2764E4")] get { return default(bool); } [Token(Token = "0x60000F3")] [Address(RVA = "0x4DB7F8", Offset = "0x4DB7F8", VA = "0x4DB7F8")] [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764F4", Offset = "0x2764F4")] set { } }
and this callC++:void (*set_IsWin)(void *instance, bool value); //the void *instance is a self-created variable. bool (*old_get_IsWin)(void *instance); bool get_IsWin(void *instance) { //Check if instance is NULL to prevent CRASH if (instance != NULL && WinOK) { set_IsWin(instance, true); //Function Pointer mod } //return the original value (this code isn't really needed if you have a toggle/switch) return old_get_IsWin(instance); }
C++:set_IsWin = (void (*)(void *, bool))getAbsoluteAddress(targetLibName,0x4DB7F8); HOOK_LIB("libil2cpp.so", "0x4DB7F0", get_IsWin, old_get_IsWin);
Cứu giúp
[/TRÍCH DẪN]
0x1897D8C setspeed
Cập nhật 0x189A764
please help
search the fields in the same class for it (0x@@) (@@ is the number like 0x10, 0x18 etc)help
use mshookfunction .. no hook_libPlease help. I did everything according to the tutorial, but all to no avail. Can you suggest what I did wrong?
This is from dnspy
this is hookC++:[Token(Token = "0x17000015")] public bool IsWin { [Token(Token = "0x60000F2")] [Address(RVA = "0x4DB7F0", Offset = "0x4DB7F0", VA = "0x4DB7F0")] [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764E4", Offset = "0x2764E4")] get { return default(bool); } [Token(Token = "0x60000F3")] [Address(RVA = "0x4DB7F8", Offset = "0x4DB7F8", VA = "0x4DB7F8")] [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x2764F4", Offset = "0x2764F4")] set { } }
and this callC++:void (*set_IsWin)(void *instance, bool value); //the void *instance is a self-created variable. bool (*old_get_IsWin)(void *instance); bool get_IsWin(void *instance) { //Check if instance is NULL to prevent CRASH if (instance != NULL && WinOK) { set_IsWin(instance, true); //Function Pointer mod } //return the original value (this code isn't really needed if you have a toggle/switch) return old_get_IsWin(instance); }
C++:set_IsWin = (void (*)(void *, bool))getAbsoluteAddress(targetLibName,0x4DB7F8); HOOK_LIB("libil2cpp.so", "0x4DB7F0", get_IsWin, old_get_IsWin);
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies