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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}