#include <stdio.h>
#include <Windows.h>
int check(void)
{
_asm{
mov eax,fs:[0x30]
mov eax,[eax+0x18]
mov eax,[eax+0x10]
}
}
int main(void)
{
printf("PEB.ProcessHeap.ForceFlags \n");
while(1)
{
if(check()!=0x0)
{
printf("Debuggering~! \n");
system("taskkill /F /IM OLLYDBG.exe");
system("taskkill /F /IM devenv.exe");
}
else
printf("Normal operating~! \n");
Sleep(500);
}
}
단순한 예제..
'My Study > Programming&Theory' 카테고리의 다른 글
n x n 행렬 곱 (0) | 2009.12.07 |
---|---|
Trap Flag (0) | 2009.12.05 |
PEB.ProcessHeap.Flags (0) | 2009.12.05 |
NtGlobalFlag (0) | 2009.12.05 |
PEB.BeingDeugged (0) | 2009.12.05 |