Interface to a process. Contains threads and modules snapshots.
|
__init__(self,
dwProcessId,
hProcess=None,
fileName=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
suspend(self)
Suspends execution on all threads of the process. |
|
|
|
resume(self)
Resumes execution on all threads of the process. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
int
|
get_pid(self)
Returns:
Process global ID. |
|
|
str
|
get_filename(self)
Returns:
Filename of the main module of the process. |
|
|
bool
|
is_debugged(self)
Returns:
True if the process is being debugged. |
|
|
bool
|
is_alive(self)
Returns:
True if the process is currently running. |
|
|
int
|
get_exit_code(self)
Returns:
Process exit code, or STILL_ACTIVE if it's still alive. |
|
|
int
|
|
int
|
|
Module
|
|
PEB
|
|
|
wait(self,
dwTimeout=None)
Waits for the process to finish executing. |
|
|
|
kill(self,
dwExitCode=0)
Terminates the execution of the process. |
|
|
|
inject_code(self,
payload,
lpParameter=0)
Injects relocatable code into the process memory and executes it. |
|
|
|
inject_dll(self,
dllname,
procname=None,
lpParameter=0,
dwTimeout=None)
Injects a DLL into the process memory. |
|
|
|
|
|
debug_break(self)
Triggers the system breakpoint in the process. |
|
|
int
|
|
bool
|
__contains__(self,
anObject)
The same as: self.has_thread(anObject) or
self.has_module(anObject) |
|
|
int
|
|
iterator
|
|
|
scan(self)
Populates the snapshot of threads and modules. |
|
|
|
clear(self)
Clears the snapshot of threads and modules. |
|
|
|
open_handle(self)
Opens a new handle to the process. |
|
|
|
close_handle(self)
Closes the handle to the process. |
|
|
ProcessHandle
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
list( MEMORY_BASIC_INFORMATION )
|
|
int
|
|
int
|
|
MEMORY_BASIC_INFORMATION
|
|
str
|
|
int
|
|
str, unicode
|
|
int
|
|
str
|
|
int
|
|
int
|
|
int
|
|
int
|
|
int
|
|
int
|
|
|
|
|
|
|
|
list of tuple( long, int, str, str )
|
|
list of tuple( long, int, str, str )
|
|
list of tuple( long, int, str, str )
|
|
|
|
dict( str → str )
|
|
str
|
|
int
|
|
str
|
|
tuple( str or None, str or int or None, int or None )
|
|
|
|
|
|
|
|
list( Thread )
|
|
Thread
|
|
int
|
|
list( int )
|
|
bool
|
|
dictionary-keyiterator
|
|
dictionary-valueiterator
|
|
|
|
|
|
Module
|
|
Module
|
|
list( int... )
|
|
Module
|
|
int
|
|
bool
|
|
dictionary-keyiterator
|
|
dictionary-valueiterator
|
|
|
|