Пример #1
0
    def send_message(self, message, msgtype=kismet_pb2.MsgbusMessage.INFO):
        """
        Send a message which wil be displayed via the Kismet message bus and in the UI

        :param message: Message text
        :param msgtype: message type, one of MSG_INFO, _ERROR, _ALERT, _FATAL

        :return: None
        """
        msg = kismet_pb2.MsgbusMessage()
        msg.msgtext = message
        msg.msgtype = msgtype
        self.write_ext_packet("MESSAGE", msg)
Пример #2
0
 def send_message(self, message, msgtype=kismet_pb2.MsgbusMessage.INFO):
     msg = kismet_pb2.MsgbusMessage()
     msg.msgtext = message
     msg.msgtype = msgtype
     self.write_ext_packet("MESSAGE", msg)