diff --git a/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp b/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp index ec123f3c..6a7b7aad 100644 --- a/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp +++ b/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp @@ -164,6 +164,14 @@ static void cbDebugloop(CBTYPE cbType, void* callbackInfo) MessageBoxW(hwndDlg, L"Anti-Anti-Attach failed", L"Error", MB_ICONERROR); } } + //In newest x64dbg version the auto break on attach was removed so ScyllaHide would never inject. + if (!bHooked) + { + ReadNtApiInformation(&g_hdd); + + bHooked = true; + startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true); + } } break; @@ -182,14 +190,6 @@ static void cbDebugloop(CBTYPE cbType, void* callbackInfo) { case STATUS_BREAKPOINT: { - if (!bHooked) - { - ReadNtApiInformation(&g_hdd); - - bHooked = true; - startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true); - } - break; }