[Code]IsDebuggerPresent Check

c++ / delphi package - dll injection and api hooking
Post Reply
aiwnjoo
Posts: 52
Joined: Tue Mar 06, 2007 1:06 pm

[Code]IsDebuggerPresent Check

Post by aiwnjoo »

Code: Select all

VOID FirstThread( VOID )
{
	if( bIsDebuggerPresent() )
	{
		_asm
		{
			sub esp, 0x255
			mov eax, 0xDADBEEF
			jmp eax
		}
	}		

g_hNtDll = GetModuleHandle("NTDLL.DLL");
:)
Post Reply