Skip to content

Commit 9ad0839

Browse files
authored
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.
1 parent 75fde06 commit 9ad0839

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ static void cbDebugloop(CBTYPE cbType, void* callbackInfo)
164164
MessageBoxW(hwndDlg, L"Anti-Anti-Attach failed", L"Error", MB_ICONERROR);
165165
}
166166
}
167+
//In newest x64dbg version the auto break on attach was removed so ScyllaHide would never inject.
168+
if (!bHooked)
169+
{
170+
ReadNtApiInformation(&g_hdd);
171+
172+
bHooked = true;
173+
startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true);
174+
}
167175
}
168176

169177
break;
@@ -182,14 +190,6 @@ static void cbDebugloop(CBTYPE cbType, void* callbackInfo)
182190
{
183191
case STATUS_BREAKPOINT:
184192
{
185-
if (!bHooked)
186-
{
187-
ReadNtApiInformation(&g_hdd);
188-
189-
bHooked = true;
190-
startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true);
191-
}
192-
193193
break;
194194
}
195195

0 commit comments

Comments
 (0)