首页
社区
课程
招聘
r3上怎么hook 非系统DLL内的API
发表于: 2015-11-13 10:05 3710

r3上怎么hook 非系统DLL内的API

2015-11-13 10:05
3710
自己写了一个DLL,导入表中没有这个DLL,怎么弄??
求解答!

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 6366
活跃值: (4336)
能力值: ( LV7,RANK:110 )
在线值:
发帖
回帖
粉丝
2
LoadLibrary一下,和系统dll同样的方法啊。。。
2015-11-13 10:22
0
雪    币: 40
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
1.首先确保该DLL已经加载到进程里了。

2.使用MiniHook已有的函数MH_CreateHookApi即可Hook。第一个参数就是DLL名称。
    // Creates a Hook for the specified API function, in disabled state.
    // Parameters:
    //   pszModule  [in]  A pointer to the loaded module name which contains the
    //                    target function.
    //   pszTarget  [in]  A pointer to the target function name, which will be
    //                    overridden by the detour function.
    //   pDetour    [in]  A pointer to the detour function, which will override
    //                    the target function.
    //   ppOriginal [out] A pointer to the trampoline function, which will be
    //                    used to call the original target function.
    //                    This parameter can be NULL.
    MH_STATUS WINAPI MH_CreateHookApi(
        LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal);
2016-1-16 16:43
0
游客
登录 | 注册 方可回帖
返回
//