Home | Trees | Indices | Help |
|
---|
|
Interface to a thread in another process.
|
|||
Registers | |||
---|---|---|---|
Flags Commonly used processor flags |
|
|||
|
|||
|
|||
|
|||
tuple of tuple( int, int, str ) |
|
||
tuple of tuple( int, int, str ) |
|
||
Inherited from |
|||
Properties | |||
---|---|---|---|
Process |
|
||
|
|||
int |
|
||
int |
|
||
str |
|
||
|
|||
|
|||
|
|||
ThreadHandle |
|
||
bool |
|
||
int |
|
||
list of Window |
|
||
bool |
|
||
str |
|
||
str |
|
||
TEB |
|
||
int |
|
||
Instrumentation | |||
|
|||
|
|||
int |
|
||
int |
|
||
Debugging | |||
bool |
|
||
int |
|
||
|
|||
list of tuple( int, int ) |
|
||
tuple of ( list of win32.WaitChainNodeInfo structures, bool) |
|
||
Disassembly | |||
list of tuple( long, int, str, str ) |
|
||
list of tuple( long, int, str, str ) |
|
||
list of tuple( long, int, str, str ) |
|
||
list of tuple( long, int, str, str ) |
|
||
tuple( long, int, str, str ) |
|
||
tuple( long, int, str, str ) |
|
||
Stack | |||
tuple( int, int ) |
|
||
tuple of tuple( int, int, str ) |
|
||
tuple of tuple( int, int, str ) |
|
||
tuple( int, int ) |
|
||
str |
|
||
str |
|
||
str |
|
||
tuple( int... ) |
|
||
tuple( int... ) |
|
||
tuple( int... ) |
|
||
tuple( int... ) |
|
||
tuple |
|
||
tuple |
|
||
Registers | |||
dict( str → int ) |
|
||
|
|||
int |
|
||
int |
|
||
int |
|
||
|
|||
int |
|
||
|
|||
int |
|
||
|
|||
int |
|
||
|
|||
bool |
|
||
|
|||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Threads snapshot | |||
|
|||
Miscellaneous | |||
int |
|
||
str |
|
||
str |
|
||
str |
|
||
dict( str → str ) |
|
||
dict( str → str ) |
|
|
|||
Process |
process Parent process object. |
||
int |
dwThreadId Global thread ID. |
||
ThreadHandle |
hThread Handle to the thread. |
||
int |
pInjectedMemory If the thread was created by Process.inject_code, this member contains a pointer to the memory buffer for the injected code. |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Manually set the parent Process object. Use with care!
|
|
|
|
Sets the thread's name.
|
Opens a new handle to the thread, closing the previous one. The new handle is stored in the hThread property.
Warning: Normally you should call get_handle instead, since it's much "smarter" and tries to reuse handles and merge access rights. |
Closes the handle to the thread. Note: Normally you don't need to call this method. All handles created by WinAppDbg are automatically closed when the garbage collector claims them. |
Returns a handle to the thread with at least the access rights requested.
Note: If a handle was previously opened and has the required access rights, it's reused. If not, a new handle is opened with the combination of the old and new access rights. |
Waits for the thread to finish executing.
|
Terminates the thread execution.
Note:
If the |
Suspends the thread execution.
|
Resumes the thread execution.
|
|
|
|
Retrieves the execution context (i.e. the registers values) for this thread.
See Also: set_context |
Sets the values of the registers.
See Also: get_context |
|
Sets the value of a specific register.
|
|
Sets the value of the program counter register.
|
|
Sets the value of the stack pointer register.
|
|
Sets the value of the frame pointer register.
|
|
Sets the flags register, optionally masking some bits.
|
|
Sets a single flag, leaving the others intact.
|
|
|
|
|
|
Determines if the thread is running under WOW64.
|
|
|
Determines if the thread has been hidden from debuggers. Some binary packers hide their own threads to thwart debugging.
|
Returns a copy of the TEB. To dereference pointers in it call Process.read_structure.
|
Returns a remote pointer to the TEB.
|
Translates segment-relative addresses to linear addresses. Linear addresses can be used to access a process memory, calling Process.read and Process.write.
|
|
Get the pointer to the first structured exception handler block.
|
Change the pointer to the first structured exception handler block.
|
|
|
|
Tries to get a stack trace for the current function using the debug helper API (dbghelp.dll).
|
Tries to get a stack trace for the current function. Only works for functions with standard prologue and epilogue.
|
Tries to get a stack trace for the current function. Only works for functions with standard prologue and epilogue.
|
Tries to get a stack trace for the current function. Only works for functions with standard prologue and epilogue.
|
Returns the starting and ending addresses of the stack frame. Only works for functions with standard prologue and epilogue.
|
Reads the contents of the current stack frame. Only works for functions with standard prologue and epilogue.
|
Reads the contents of the top of the stack.
|
Tries to read the contents of the top of the stack.
|
Reads DWORDs from the top of the stack.
|
Tries to read DWORDs from the top of the stack.
|
Reads QWORDs from the top of the stack.
|
Tries to read QWORDs from the top of the stack.
|
Reads the given structure at the top of the stack.
|
Reads the stack frame of the thread.
|
Tries to read some bytes of the code currently being executed.
|
Tries to read some bytes of the code currently being executed.
|
Tries to guess which values in the registers are valid pointers, and reads some data from them.
|
Tries to guess which values in the given data are valid pointers, and reads some data from them.
|
Disassemble instructions from a block of binary code.
|
Disassemble instructions from the address space of the process.
|
Disassemble around the given address.
|
Disassemble around the program counter of the given thread.
|
Disassemble the instruction at the given memory address.
|
Disassemble the instruction at the program counter of the given thread.
|
|
processParent process object. Use get_process instead.
|
dwThreadIdGlobal thread ID. Use get_tid instead.
|
hThreadHandle to the thread. Use get_handle instead.
|
pInjectedMemoryIf the thread was created by Process.inject_code, this member contains a pointer to the memory buffer for the injected code. Otherwise it'sNone .
The kill method uses this member to free the buffer when the injected thread is killed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Dec 20 17:54:56 2013 | http://epydoc.sourceforge.net |