vagd.virts.docker_exec ====================== .. py:module:: vagd.virts.docker_exec Classes ------- .. autoapisummary:: vagd.virts.docker_exec.DockerExecTube Module Contents --------------- .. py:class:: DockerExecTube(api: Any, exec_id: str, stream: Any, tty: bool = False, timeout: Any = tube.default, level: Optional[str] = None) Bases: :py:obj:`pwnlib.tubes.tube.tube` Pwntools tube backed by an attached Docker exec socket. .. py:attribute:: _HEADER_SIZE :value: 8 .. py:attribute:: _api .. py:attribute:: exec_id .. py:attribute:: _stream .. py:attribute:: sock .. py:attribute:: tty :value: False .. py:attribute:: closed .. py:attribute:: _wire_buffer .. py:attribute:: _output_buffer .. py:method:: _decode_frames() -> None .. py:method:: recv_raw(numb: int) -> Optional[bytes] recv_raw(numb) -> str Should not be called directly. Receives data without using the buffer on the object. Unless there is a timeout or closed connection, this should always return data. In case of a timeout, it should return None, in case of a closed connection it should raise an ``exceptions.EOFError``. .. py:method:: send_raw(data: bytes) -> None send_raw(data) Should not be called directly. Sends data to the tube. Should return ``exceptions.EOFError``, if it is unable to send any more, because of a closed tube. .. py:method:: can_recv_raw(timeout: float) -> bool can_recv_raw(timeout) -> bool Should not be called directly. Returns True, if there is data available within the timeout, but ignores the buffer on the object. .. py:method:: connected_raw(direction: str) -> bool connected(direction = 'any') -> bool Should not be called directly. Returns True iff the tube is connected in the given direction. .. py:method:: settimeout_raw(timeout: Optional[float]) -> None settimeout_raw(timeout) Should not be called directly. Sets the timeout for the tube. .. py:method:: shutdown_raw(direction: str) -> None shutdown_raw(direction) Should not be called directly. Closes the tube for further reading or writing. .. py:method:: close() -> None close() Closes the tube. .. py:method:: fileno() -> int fileno() -> int Returns the file number used for reading. .. py:method:: poll(block: bool = False) -> Optional[int] .. py:property:: pid :type: int