pwnlib.tubes.serialtube — Serial Ports¶
-
class
pwnlib.tubes.serialtube.serialtube(port=None, baudrate=115200, convert_newlines=True, bytesize=8, parity='N', stopbits=1, xonxoff=False, rtscts=False, dsrdtr=False, *a, **kw)[source]¶ -
can_recv_raw(timeout) → bool[source]¶ Should not be called directly. Returns True, if there is data available within the timeout, but ignores the buffer on the object.
-
connected_raw(direction)[source]¶ connected(direction = ‘any’) -> bool
Should not be called directly. Returns True iff the tube is connected in the given direction.
-
recv_raw(numb) → str[source]¶ 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.
-