| | |
- _ctypes.Structure(_ctypes._CData)
-
- INPUT_RECORD
- KEY_EVENT_RECORD
- OVERLAPPED
- builtins.object
-
- PipeClient
class INPUT_RECORD(_ctypes.Structure) |
| |
Represents a console input record. |
| |
- Method resolution order:
- INPUT_RECORD
- _ctypes.Structure
- _ctypes._CData
- builtins.object
Data descriptors defined here:
- Event
- EventType
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Methods inherited from _ctypes.Structure:
- __buffer__(self, flags, /)
- Return a buffer object that exposes the underlying memory of the object.
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Static methods inherited from _ctypes.Structure:
- __new__(*args, **kwargs) class method of _ctypes.Structure
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(self, /)
- default __ctypes_from_outparam__ method returns self.
- __hash__(self, /)
- Return hash(self).
- __reduce__(self, /)
- Helper for pickle.
- __setstate__(self, dict, data, /)
|
class KEY_EVENT_RECORD(_ctypes.Structure) |
| |
Represents a key event in the Windows console input. |
| |
- Method resolution order:
- KEY_EVENT_RECORD
- _ctypes.Structure
- _ctypes._CData
- builtins.object
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
- bKeyDown
- dwControlKeyState
- uChar
- wRepeatCount
- wVirtualKeyCode
- wVirtualScanCode
Methods inherited from _ctypes.Structure:
- __buffer__(self, flags, /)
- Return a buffer object that exposes the underlying memory of the object.
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Static methods inherited from _ctypes.Structure:
- __new__(*args, **kwargs) class method of _ctypes.Structure
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(self, /)
- default __ctypes_from_outparam__ method returns self.
- __hash__(self, /)
- Return hash(self).
- __reduce__(self, /)
- Helper for pickle.
- __setstate__(self, dict, data, /)
|
class OVERLAPPED(_ctypes.Structure) |
| |
Represents the Windows OVERLAPPED structure for asynchronous I/O. |
| |
- Method resolution order:
- OVERLAPPED
- _ctypes.Structure
- _ctypes._CData
- builtins.object
Data descriptors defined here:
- Internal
- InternalHigh
- Offset
- OffsetHigh
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
- hEvent
Methods inherited from _ctypes.Structure:
- __buffer__(self, flags, /)
- Return a buffer object that exposes the underlying memory of the object.
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Static methods inherited from _ctypes.Structure:
- __new__(*args, **kwargs) class method of _ctypes.Structure
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(self, /)
- default __ctypes_from_outparam__ method returns self.
- __hash__(self, /)
- Return hash(self).
- __reduce__(self, /)
- Helper for pickle.
- __setstate__(self, dict, data, /)
|
class PipeClient(builtins.object) |
| |
PipeClient(
executable: str = 'C:\\Windows\\System32\\cmd.exe',
server_path: str = 'SystemShellServer.py',
schtasks: str = None,
pipein: str = None,
pipeout: str = None
)
Client for communicating with a server via named pipes. |
| |
Methods defined here:
- __init__(
self,
executable: str = 'C:\\Windows\\System32\\cmd.exe',
server_path: str = 'SystemShellServer.py',
schtasks: str = None,
pipein: str = None,
pipeout: str = None
)
- Initialize pipes and console handles, and start the server process.
- run(self) -> int
- Run the main loop reading from the pipe and console.
- start_pipe_read(self) -> Tuple[OVERLAPPED, bytes]
- Start an asynchronous read from the output pipe.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes defined here:
- ERROR_BROKEN_PIPE = 109
- ERROR_IO_PENDING = 997
- FILE_FLAG_OVERLAPPED = 1073741824
- GENERIC_READ = 2147483648
- GENERIC_WRITE = 1073741824
- KEY_EVENT = 1
- OPEN_EXISTING = 3
- STD_INPUT_HANDLE = -10
- STD_OUTPUT_HANDLE = -11
- WAIT_OBJECT_0 = 0
| |