Windows Assembly / Trap Flag
Author | External |
Platform | Windows |
Language | Assembly |
Technique | Trap Flag |
Code
BOOL IsDebuggerPresent_TrapFlag()
{
__try
{
__asm
{
pushfd
or word ptr[esp], 0x100
popfd
nop
}
}
__except(1)
{
return FALSE;
}
return TRUE;
}
Created
June 22, 2022
Last Revised
April 22, 2024