frida-python
frida-python copied to clipboard
how did use CModule to compilered and call a c function in windows process
excuse me! i write a very simple c code,like this,but it can not compiler with CModule。i want to get GetProcAddress and LoadLibrary's address then i can hooking that new loading mod‘s function ,when the windows processs load it . Is there any other way to do it? #include <stdio.h> #include <libloaderapi.h> int GetProcAddr(int mod,char* funcName) { int func = (int)GetProcAddress((HMODULE)mod, funcName); printf("mod: %x ,func: %x \n",mod, func); return func; }