void debugEngine_OnDbgAttached() { // we have to set our breakpoints here, otherwise we might have a breakpoint hit before we // completely attached to the process! foreach (PEModule module in activeRecording_.Modules) { foreach (uint bp in module.BreakPointAddresses) { debugEngine_.setBreakPoint((IntPtr)bp, !restoreBreakPoints_); } } // hide debugger AntiAntiDebugger dbgStealth = new AntiAntiDebugger(debugEngine_.ProcessInfo.hProcess, debugEngine_.ProcessInfo.hThread); dbgStealth.hideDebugger(); DebuggerAttached(new DebuggerAttachedEventArgs(debugEngine_.ProcessInfo.dwProcessId, exeName_)); }
void debugEngine_OnDbgAttached() { // we have to set our breakpoints here, otherwise we might have a breakpoint hit before we // completely attached to the process! foreach (PEModule module in activeRecording_.Modules) { foreach (uint bp in module.BreakPointAddresses) debugEngine_.setBreakPoint((IntPtr)bp, !restoreBreakPoints_); } // hide debugger AntiAntiDebugger dbgStealth = new AntiAntiDebugger(debugEngine_.ProcessInfo.hProcess, debugEngine_.ProcessInfo.hThread); dbgStealth.hideDebugger(); DebuggerAttached(new DebuggerAttachedEventArgs(debugEngine_.ProcessInfo.dwProcessId, exeName_)); }