Codex
1.41K subscribers
46 photos
16 videos
96 files
62 links
Content channel :
- App Development
- Python , C++, kotlin , Golang, Java , JS , Rust

This Channel Doesn't Promote Any Illegal Activities It's Just For Fun Educational Purposes
Owner : @Qwanwin
From : Indonesia
Download Telegram
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <android/log.h>
#include <dlfcn.h>
#include <atomic>

#define LOG_TAG "Qwanwin"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

static std::atomic<int> gW{0}, gH{0};

using PFN_eglSwapBuffers = EGLBoolean (*)(EGLDisplay, EGLSurface);

static PFN_eglSwapBuffers orig_eglSwapBuffers = nullptr;
static thread_local bool tls_in_hook = false;


extern "C" EGLBoolean _eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) {
if (tls_in_hook) {
return orig_eglSwapBuffers ? orig_eglSwapBuffers(dpy, surface) : EGL_FALSE;
}
tls_in_hook = true;

if (dpy != EGL_NO_DISPLAY && surface != EGL_NO_SURFACE) {
EGLint w = 0, h = 0;
if (eglQuerySurface(dpy, surface, EGL_WIDTH, &w) == EGL_TRUE &&
eglQuerySurface(dpy, surface, EGL_HEIGHT, &h) == EGL_TRUE &&
w > 0 && h > 0) {
gW.store((int)w, std::memory_order_relaxed);
gH.store((int)h, std::memory_order_relaxed);
} else {
// fallback
GLint vp[4] = {0,0,0,0};
glGetIntegerv(GL_VIEWPORT, vp); // [x,y,w,h]
if (vp[2] > 0 && vp[3] > 0) {
gW.store(vp[2], std::memory_order_relaxed);
gH.store(vp[3], std::memory_order_relaxed);
}
}
}

EGLBoolean ret = orig_eglSwapBuffers ? orig_eglSwapBuffers(dpy, surface) : EGL_FALSE;
tls_in_hook = false;
return ret;
}

static void* Qwanwin_eglSwapBuffers() {

void* sym = dlsym(RTLD_NEXT, "eglSwapBuffers");
if (sym) return sym;

void* h = dlopen("libEGL.so", RTLD_NOW);
if (!h) return nullptr;
sym = dlsym(h, "eglSwapBuffers");
return sym;
}

extern "C" void QwanEglSwapHook_Easy() {
if (orig_eglSwapBuffers) return;
void* target = Qwanwin_eglSwapBuffers();
if (!target) {
LOGE("Failed to eglSwapBuffers");
return;
}


if (Tools::Hook((void*)target, (void*)_eglSwapBuffers, (void**)&orig_eglSwapBuffers)) {
LOGI("Hooked eglSwapBuffers successfully");
} else {
LOGE("Hook failed");
}
}

/*
extern "C" int eglhook_get_w() { return gW.load(std::memory_order_relaxed); }
extern "C" int eglhook_get_h() { return gH.load(std::memory_order_relaxed); }*/

Auto set-up

__attribute__((constructor))
static void on_load() { QwanEglSwapHook_Easy(); }



EGL Hook

Credit @codex4444
14👍2🔥1
SourceOPatch.zip
128.1 MB
Build use AndroidStudio
1😱4👏2🤔1
Hex-Rays just dropped a brand-new Python API that makes IDA scripting cleaner, shorter, and way more Pythonic.

See the difference in 5 seconds
OLD (IDAPython SDK):
ea = here()
func = get_func(ea)
name = get_func_name(func.start_ea)

NEW (IDA Domain API):
from ida_domain import Database
with Database() as db:
print(db.functions.get_name(func))

Key points
• No more verbose IDAPython boilerplate
• Runs inside IDA or headless (batch automation)


Install:
 pip install ida-domain

Docs & examples: https://hex-rays.com/blog/introducing-the-ida-domain-api
6👍1
SurfaceBlobKit.zip
471.9 KB
SurfaceBlobKit — a dynamic loader for Android native-surface (.so) directly from memory.
• Loads API-specific blobs (Android 9–13)
• Resolves functions such as createNativeWindow
• Exposes a safe and unified API

multi-platform testing, integration in custom builds (e.g., kernel modules, device-specific surface handling).

file include
-How to use.txt (don't ask me)

Author: @Qwanwin
Telegram: https://t.me/codex4444
1🔥92
1🔥1
GameGuardian.zip
13.2 MB
Module GameGuardian !
Version: v1.0


Support :

•Magisk 20->29
•Ksu GKI
•Ksu next (GKI & No GKI)


SS

Use Zygisk Next / ReZygisk

Author: @Qwanwin
https://t.me/codex4444

Release date : Tuesday 23-Sep-2025
210👍2🔥2
A fun programming language in Indonesian (biarkan, tulis, jika, ulang, fungsi, kembalikan, benar/salah).
Repo: https://github.com/Cynthia-cnn/CynLang
👍41
AetherHook.h
27.2 KB
Framework hooking for Android ARM64

Author @Qwanwin
9🔥3
minhook.zip
180.4 KB
Framework Hooking For Windows x64

Author : https://github.com/TsudaKageyu/minhook
3👍1
AetherHook.zip
43.9 KB
Framework hooking for Android ARM64

- Remove useless code
- Optimization code

Thank you for your suggestion !!


Processing time : 8 hours 30 minutes
Release date : Monday 13-Oct-2025

Author @Qwanwin
6🔥1
Forwarded from ️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️antik
Media is too big
VIEW IN TELEGRAM
14🔥3
sdk-generator.zip
324.4 KB
Support UE1-UE4

How to use?
https://github.com/Cynthia-cnn/Docs/blob/main/README.md

Author? Idk 😐
🤬2
LinuxBinaryAnalysis.pdf
13.7 MB
I love this book 📚
11👍1
Build original my thema 😊
🔥32🤔1