Fix according to newest x64dbg changes (#114)

* Fix according to newest x64dbg changes

In newest x64dbg version the auto break on attach was removed so ScyllaHide would never inject.
This commit is contained in:
qfrtt
2020-12-13 20:06:49 +01:00
committed by GitHub
parent 75fde06ac9
commit 9ad0839dc2
@@ -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;
}