frida-python icon indicating copy to clipboard operation
frida-python copied to clipboard

how did use CModule to compilered and call a c function in windows process

Open MAXycx opened this issue 5 years ago • 0 comments

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; }

MAXycx avatar Sep 18 '20 07:09 MAXycx