AntiDebugging
Anti Debugging C++ Class
Install / Use
/learn @S12cybersecurity/AntiDebuggingREADME
AntiDebugging
Anti Debugging C++ Class
Techniques Covered
searchSoftwareBreakpoints(PVOID mAddress):
Searches for software breakpoints in the memory at the specified address (mAddress).
It looks for the byte 0xCC (int 3), which is a common opcode used for software breakpoints.
searchHardwareBreakpoints(HANDLE tHandle):
Checks for the presence of hardware breakpoints in the specified thread (tHandle).
Utilizes the CONTEXT structure and the thread's context to inspect debug registers.
debuggerPresent():
Uses the WinAPI function IsDebuggerPresent() to check if the process is being debugged.
antiDbgBreakPoint():
Attempts to disable the DbgBreakPoint function by changing its first byte to 0xC3 (ret) using VirtualProtect.
antiDbgUiRemoteBreakin():
Attempts to modify the DbgUiRemoteBreakin function to prevent remote debugging.
Creates a custom patch (DbgUiRemoteBreakinPatch) and applies it to the DbgUiRemoteBreakin function.
isDebuggerPresentInRemoteProcess(HANDLE hProcess):
Checks if a debugger is present in a remote process specified by the hProcess handle.
Uses the CheckRemoteDebuggerPresent function.
patchDebuggingFunctions():
Calls both antiDbgBreakPoint() and antiDbgUiRemoteBreakin() to apply the patches.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
