Skip to content

Commit

Permalink
Fix according to newest x64dbg changes (#114)
Browse files Browse the repository at this point in the history
* Fix according to newest x64dbg changes

In newest x64dbg version the auto break on attach was removed so ScyllaHide would never inject.
  • Loading branch information
qfrtt authored Dec 13, 2020
1 parent 75fde06 commit 9ad0839
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 9ad0839

Please sign in to comment.