-
-
[原创]嘿嘿,这样检测R3调试器如何。。。
-
发表于:
2013-7-4 01:15
5373
-
希望没撞车
#include <windows.h>
DWORD dwTickCount;
DWORD dwExceptionCode;
BOOL bFlag;
LONG CALLBACK VEHandler(PEXCEPTION_POINTERS ExceptionInfo)
{
if (ExceptionInfo->ExceptionRecord->ExceptionCode == dwExceptionCode)
{
bFlag = TRUE;
if (GetTickCount() - dwTickCount > 50) MessageBoxA(NULL,"别调试哥",NULL,0);
}
return EXCEPTION_CONTINUE_EXECUTION;
}
void main()
{
AddVectoredExceptionHandler(1,&VEHandler);
dwExceptionCode = (DWORD)EncodePointer((PVOID)GetTickCount());
dwTickCount = GetTickCount();
bFlag = FALSE;
RaiseException(dwExceptionCode,0,0,NULL);
if (!bFlag) MessageBoxA(NULL,"别调试哥",NULL,0);
MessageBoxA(NULL,"!",NULL,0);
ExitProcess(0);
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!