(C++) GetTickCount by External

June 22, 2022, 2:19 a.m. | 2 weeks

Description:

Original code available here: https://anti-debug.checkpoint.com/techniques/timing.html#kernel-timing

Code

            bool IsDebugged(DWORD dwNativeElapsed)
{
    DWORD dwStart = GetTickCount();
    // ... some work
    return (GetTickCount() - dwStart) > dwNativeElapsed;
}
        

Comment