From 8cb31bfe6123b87603fbb7af91fb69a2d31b8e21 Mon Sep 17 00:00:00 2001 From: vxunderground <57078196+vxunderground@users.noreply.github.com> Date: Fri, 15 Jul 2022 12:37:29 -0500 Subject: [PATCH] Update RfCheckRemoteDebuggerPresent.cpp --- Anti-Debug/RfCheckRemoteDebuggerPresent.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Anti-Debug/RfCheckRemoteDebuggerPresent.cpp b/Anti-Debug/RfCheckRemoteDebuggerPresent.cpp index bd1117a..97c56b0 100644 --- a/Anti-Debug/RfCheckRemoteDebuggerPresent.cpp +++ b/Anti-Debug/RfCheckRemoteDebuggerPresent.cpp @@ -28,10 +28,9 @@ BOOL RfCheckRemoteDebuggerPresent(HANDLE hHandle, PBOOL pbDebuggerPresent) Status = NtQueryInformationProcess(hHandle, ProcessDebugPort, &dwProcessDebugPort, sizeof(DWORD), &dwReturnValue); if (NT_SUCCESS(Status) && dwProcessDebugPort == -1) - return FALSE; + return TRUE; *pbDebuggerPresent = TRUE; return TRUE; - }