能力值:
( LV2,RANK:10 )
|
-
-
3 楼
#include "stdafx.h"
#include<windows.h>
#include<stdio.h>
#define DLL_NAME "user32.dll"
int main()
{
BYTE* ptr;
int position, address;
HINSTANCE handle;
BOOL done_flag = FALSE;
handle = LoadLibrary(DLL_NAME);
if(!handle)
{
printf("load dll erro \n");
return 0;
}
ptr = (BYTE*)handle;
for(position = 0; !done_flag; position++)
{
try
{
if(ptr[position] == 0xFF && ptr[position+1] == 0XE4)
{
int address = (int) ptr + position;
printf("opcode found at 0x%x\n", address);
}
}
catch(...)
{
int address = (int)ptr + position;
printf("end of 0x%x\n", address);
done_flag = true;
}
}
return 0;
} 上述代码可编译通过。
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
你用的是XX.c文件?
|
|
|