-
-
[原创]嘿嘿,这样检测R3调试器如何。。。
-
发表于:
2013-7-4 01:15
5370
-
希望没撞车
#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);
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课