打印出 DLL 文件导出函数的通用程序
#include "stdafx.h"#include "windows.h"
#define DLL_NAME "你要搜索的DLL名字"
int _tmain(int argc, _TCHAR* argv[])
{
int *str;
unsigned int icount;
unsigned int count=0;
HANDLE base;
base=::LoadLibrary(TEXT("kernel32.dll"));
_asm{
mov eax,base
add eax,[eax+03ch]
mov eax,[eax+078h]
add eax,base
mov ecx,[eax+018h]
mov icount,ecx
mov eax,[eax+020h]
add eax,base
mov str,eax
}
while(count<icount)
{
printf("%s\n",(*(str+count)+base));
count++;
}
//*/
//printf("%x\n",a);
getchar();
return 0;
}
[ 本帖最后由 zhu224039 于 2014-6-6 17:21 编辑 ]