Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

CloseHandle

Мрак edited this page Jun 12, 2022 · 1 revision

How it works

If a process is running under a debugger and an invalid handle is passed to the ntdll!NtClose() or kernel32!CloseHandle() function, then the EXCEPTION_INVALID_HANDLE (0xC0000008) exception will be raised. The exception can be cached by an exception handler. If the control is passed to the exception handler, it indicates that a debugger is present.

Reference

Anti-Debug Tricks

Clone this wiki locally