Ejemplo n.º 1
0
    def request_http_auth(self, callback=None):
        """
        Request Kismet generate a HTTP session token; this token will be sent
        via a HTTPAUTH message and the callback function will be triggered.

        :param callback: Function to be called when an AUTH result is returned,
        called with no parameters.

        :return: None
        """
        self.http_auth_callback = callback
        auth = http_pb2.HttpAuthTokenRequest()
        self.write_ext_packet("HTTPAUTHREQ", auth)
Ejemplo n.º 2
0
 def request_http_auth(self, callback=None):
     self.http_auth_callback = callback
     auth = http_pb2.HttpAuthTokenRequest()
     self.write_ext_packet("HTTPAUTHREQ", auth)