Tries to determine if the process is being debugged by another process. It may detect other debuggers besides WinAppDbg. @rtype: bool @return: C{True} if the process has a debugger attached. @warning: May return inaccurate results when some ant
(self)
| 410 | raise |
| 411 | |
| 412 | def is_debugged(self): |
| 413 | """ |
| 414 | Tries to determine if the process is being debugged by another process. |
| 415 | It may detect other debuggers besides WinAppDbg. |
| 416 | |
| 417 | @rtype: bool |
| 418 | @return: C{True} if the process has a debugger attached. |
| 419 | |
| 420 | @warning: |
| 421 | May return inaccurate results when some anti-debug techniques are |
| 422 | used by the target process. |
| 423 | |
| 424 | @note: To know if a process currently being debugged by a L{Debug} |
| 425 | object, call L{Debug.is_debugee} instead. |
| 426 | """ |
| 427 | # FIXME the MSDN docs don't say what access rights are needed here! |
| 428 | hProcess = self.get_handle(win32.PROCESS_QUERY_INFORMATION) |
| 429 | return win32.CheckRemoteDebuggerPresent(hProcess) |
| 430 | |
| 431 | def is_alive(self): |
| 432 | """ |
nothing calls this directly
no test coverage detected