Windows C++ / GetTickCount
Author | External |
Platform | Windows |
Language | C++ |
Technique | GetTickCount |
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;
}
Created
June 22, 2022
Last Revised
April 22, 2024