防止调试事件被发往调试器

    xiaoxiao2021-04-17  38

    typedef NTSTATUS(*fnZwSetInformationThread)(HANDLE ThreadHandle, THREADINFOCLASS ThreadInformationClass, PVOID ThreadInformation, ULONG ThreadInformationLength); fnZwSetInformationThread ZwSetInformationThread; ZwSetInformationThread = (fnZwSetInformationThread)GetProcAddress(GetModuleHandleA("ntdll.dll"), "ZwSetInformationThread"); if (ZwSetInformationThread) { int r = ZwSetInformationThread(GetCurrentThread(), ThreadHideFromDebugger, NULL, 0); if (r != 0) { OutputDebugStringA("No debug safety"); } }
    转载请注明原文地址: https://ju.6miu.com/read-673800.html

    最新回复(0)