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