mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
144 lines
2.4 KiB
Plaintext
144 lines
2.4 KiB
Plaintext
Processes and Threads
|
|
"""""""""""""""""""""
|
|
|
|
.. module:: windows.winobject.process
|
|
|
|
CurrentProcess
|
|
''''''''''''''
|
|
|
|
.. note::
|
|
|
|
See sample :ref:`sample_current_process`
|
|
|
|
.. autoclass:: CurrentProcess
|
|
:members:
|
|
:show-inheritance:
|
|
:inherited-members:
|
|
|
|
CurrentThread
|
|
'''''''''''''
|
|
|
|
.. autoclass:: CurrentThread
|
|
:members:
|
|
:show-inheritance:
|
|
:inherited-members:
|
|
|
|
WinProcess
|
|
''''''''''
|
|
|
|
.. note::
|
|
|
|
See sample :ref:`sample_remote_process`
|
|
|
|
.. autoclass:: WinProcess
|
|
:members:
|
|
:show-inheritance:
|
|
:inherited-members:
|
|
|
|
|
|
WinThread
|
|
'''''''''
|
|
|
|
.. autoclass:: WinThread
|
|
:members:
|
|
:show-inheritance:
|
|
:inherited-members:
|
|
|
|
|
|
.. autoclass:: DeadThread
|
|
:members:
|
|
:show-inheritance:
|
|
:inherited-members:
|
|
|
|
|
|
|
|
PEB Exploration
|
|
"""""""""""""""
|
|
|
|
The :mod:`windows` module is able to parse the PEB of the current process or remote process.
|
|
The :class:`PEB` is accessible via ``process.peb`` and is of type :class:`PEB`.
|
|
|
|
.. note::
|
|
|
|
See sample :ref:`sample_peb_exploration`
|
|
|
|
PEB
|
|
'''
|
|
|
|
.. autoclass:: PEB
|
|
:members:
|
|
:inherited-members:
|
|
|
|
LoadedModule
|
|
''''''''''''
|
|
|
|
.. autoclass:: LoadedModule
|
|
|
|
|
|
ApiSetMap
|
|
'''''''''
|
|
|
|
.. note::
|
|
|
|
see sample :ref:`sample_apisetmap`
|
|
|
|
.. autoclass:: windows.winobject.apisetmap.ApiSetMap
|
|
|
|
.. note::
|
|
Currently supported version for the ApiSetMap are 2/4/6
|
|
|
|
|
|
|
|
.. autoclass:: windows.winobject.apisetmap.ApiSetMapVersion2
|
|
:no-inherited-members:
|
|
:members: version
|
|
.. autoclass:: windows.winobject.apisetmap.ApiSetMapVersion4
|
|
:no-inherited-members:
|
|
:members: version
|
|
.. autoclass:: windows.winobject.apisetmap.ApiSetMapVersion6
|
|
:no-inherited-members:
|
|
:members: version
|
|
|
|
PEFile - Parsing loaded PE
|
|
""""""""""""""""""""""""""
|
|
|
|
:mod:`windows.pe_parse`
|
|
'''''''''''''''''''''''
|
|
|
|
.. module:: windows.pe_parse
|
|
|
|
.. autofunction:: windows.pe_parse.GetPEFile
|
|
|
|
PEFile
|
|
^^^^^^
|
|
|
|
.. autoclass:: PEFile
|
|
|
|
IATEntry
|
|
^^^^^^^^
|
|
|
|
.. autoclass:: IATEntry
|
|
|
|
.. data:: addr
|
|
|
|
:class:`int` : Address of the IAT Entry
|
|
|
|
.. data:: ord
|
|
|
|
:class:`int` : Ordinal of the imported function
|
|
|
|
.. data:: name
|
|
|
|
:class:`int` : Name of the imported function
|
|
|
|
.. data:: value
|
|
|
|
:class:`int` : The content (destination) of the IAT entry
|
|
|
|
.. warning::
|
|
|
|
`value` is a descriptor. Setting its value will actually CHANGE THE IAT ENTRY, resulting in a segfault if no VirtualProtect have been done.
|
|
|
|
.. note::
|
|
|
|
See: :class:`windows.utils.VirtualProtected` |