Help! Bypass detected Adb

Rizarudesu

Platinian
i found // RVA: 0x13ea7d8 VA: 0x7bf3ccf7d8 public Void OnAdbEnabledDetected() { }

how to implementation on zygisk imgui menu ? i want auto turn off.
 
hex patch it / hook it to make it always return false

if youre using zygisk imgui menu then put inside: void Patches() (functions.h file)


C++:
// assuming you're targeting arm64-v8a
PATCH("0x13EA7D8", "C0035FD6");
 
i write on function.h

C++:
void Patches() {
    PATCH("0x13b9f0c", "C0035FD6");
    PATCH("0x13ea7d8", "C0035FD6");
    PATCH("0x13eaa10", "C0035FD6");
    PATCH("0x13eab88", "C0035FD6");
    PATCH("0x13eadc0", "C0035FD6");
    PATCH("0x13eadc4", "C0035FD6");
}

and add patches on hook.cpp
C++:
void *hack_thread(void *arg) {
    do {
        sleep(1);
        g_il2cppBaseMap = KittyMemory::getLibraryBaseMap("libil2cpp.so");
    } while (!g_il2cppBaseMap.isValid());
    KITTY_LOGI("il2cpp base: %p", (void*)(g_il2cppBaseMap.startAddress));
    //Pointers();
    Patches();
    Hooks();
    auto eglhandle = dlopen("libunity.so", RTLD_LAZY);
    auto eglSwapBuffers = dlsym(eglhandle, "eglSwapBuffers");
    DobbyHook((void*)eglSwapBuffers,(void*)hook_eglSwapBuffers,
              (void**)&old_eglSwapBuffers);
    void *sym_input = DobbySymbolResolver(("/system/lib/libinput.so"), ("_ZN7android13InputConsumer21initializeMotionEventEPNS_11MotionEventEPKNS_12InputMessageE"));
    if (NULL != sym_input) {
        DobbyHook(sym_input,(void*)myInput,(void**)&origInput);
    }
    LOGI("Draw Done!");
    return nullptr;
}

but not working, Could it be that the offset was incorrectly searched for in dump.cs?
 
i write on function.h

C++:
void Patches() {
    PATCH("0x13b9f0c", "C0035FD6");
    PATCH("0x13ea7d8", "C0035FD6");
    PATCH("0x13eaa10", "C0035FD6");
    PATCH("0x13eab88", "C0035FD6");
    PATCH("0x13eadc0", "C0035FD6");
    PATCH("0x13eadc4", "C0035FD6");
}

and add patches on hook.cpp
C++:
void *hack_thread(void *arg) {
    do {
        sleep(1);
        g_il2cppBaseMap = KittyMemory::getLibraryBaseMap("libil2cpp.so");
    } while (!g_il2cppBaseMap.isValid());
    KITTY_LOGI("il2cpp base: %p", (void*)(g_il2cppBaseMap.startAddress));
    //Pointers();
    Patches();
    Hooks();
    auto eglhandle = dlopen("libunity.so", RTLD_LAZY);
    auto eglSwapBuffers = dlsym(eglhandle, "eglSwapBuffers");
    DobbyHook((void*)eglSwapBuffers,(void*)hook_eglSwapBuffers,
              (void**)&old_eglSwapBuffers);
    void *sym_input = DobbySymbolResolver(("/system/lib/libinput.so"), ("_ZN7android13InputConsumer21initializeMotionEventEPNS_11MotionEventEPKNS_12InputMessageE"));
    if (NULL != sym_input) {
        DobbyHook(sym_input,(void*)myInput,(void**)&origInput);
    }
    LOGI("Draw Done!");
    return nullptr;
}

but not working, Could it be that the offset was incorrectly searched for in dump.cs?
r u sure youre calling patches() (should be in drawmenu called on eglswapbuffers)
 
Back
Top Bottom