找个位置,记录下学习笔记(寂寞的疼)1
寻找kernel32.dll的基地址程序代码:
#include "windows.h" int _tmain(int argc, _TCHAR* argv[]) { int a; //HANDLE a; //a=::LoadLibrary(TEXT("kernel32.dll")); _asm { xor eax,eax mov eax,fs:[0x30] mov eax,[eax+0x0c] mov eax,[eax+0x1c] mov eax,[eax] mov eax,[eax+08h] mov a,eax } //*/ printf("%x\n",a); getchar(); return 0; }