Jump to content

Saitama

Cheater
  • Posts

    1,494
  • Joined

  • Last visited

Community Answers

  1. Saitama's post in How to call the function? (iOS jailbreak) was marked as the answer   
    the main logic is
    var someClass = new SomeClass(); //or other c# initialisation 
    someClass.SomeMethod();

    SomeMethod() cant be called from no where

    Example #1
    public class SomeClass : MonoBehaviour { // Fields ... // Properties ... // Methods ... // RVA: 0x100400 Offset: 0x100400 VA: 0x100400 public static SomeClass get_Instance() { } // RVA: 0x100500 Offset: 0x100500 VA: 0x100500 public void SomeMethod() // address 0x100500 // RVA: 0x100600 Offset: 0x100600 VA: 0x100600 public static void SomeStaticMethod() // address 0x100600 ... }  
    void* (*SomeClass$$get_Instance)() = (void(*)())getRealOffset(0x100400); void (*SomeClass$$SomeMethod)(void *SomeClass) = (void(*)(void *))getRealOffset(0x100500); void* SomeClassInstance = SomeClass$$get_Instance(); SomeClass$$SomeMethod(SomeClassInstance);  
    void (*SomeClass$$SomeStaticMethod)() = (void(*)())getRealOffset(0x100600); SomeClass$$SomeStaticMethod(); Example #2
    public class SomeOtherClass : MonoBehaviour { // Fields ... // Properties ... // Methods ... // RVA: 0x100300 Offset: 0x100300 VA: 0x100300 public void InitWithSomeClass(SomeClass someClassInstance) { } ... }  
    void* SomeClassInstance = NULL; void (*SomeOtherClass$$InitWithSomeClass_original)(void *SomeOtherClassInstance, void* someClassInstance); void _SomeOtherClass$$InitWithSomeClass_hook(void *SomeOtherClassInstance, void* someClassInstance) { SomeClassInstance = someClassInstance; SomeOtherClass$$InitWithSomeClass_original(SomeOtherClassInstance, someClassInstance); } HOOK(0x100300, _SomeOtherClass$$InitWithSomeClass_hook, SomeOtherClass$$InitWithSomeClass_original);  
  2. Saitama's post in Needing Possible Debug menu Function names was marked as the answer   
    // RVA: 0x85A9EC0 Offset: 0x7FE1EC0 VA: 0x85A9EC0 public static bool get_isDebugBuild() { } first that i do - open ida and watch who call this function
    or other function that contains Debug
    very often u can find the real functions only using this
     
  3. Saitama's post in (“Class”_Typeinfo;) hidden trying to hook was marked as the answer   
    sure
    il2cpp:0000000001616E58                 LDR             X8, [X0,#0xB8]
    il2cpp:0000000001616E5C                 LDR             W9, [X8,#0x1A0]

    mov w28, 1
    str w28,[X8,#0x1A0]

    public static int a2day; // 0x1A0 == 1
    also exist more easy way - i know thats is on forum exists
    named like static bla bla bla dont remember
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines