def __init__(self, *a, **kw): self.responses = {'data_success': 'Finished', 'greeting': 'Hello there'} self.switchboard = kw.pop('switchboard') smtp.SMTPFactory.__init__(self, *a, **kw) InputChannel.__init__(self, switchboard=self.switchboard, name=self.CHANNEL, unique_channel=False)
def __init__(self, headers, bodies, ca_cert_path, channel_name=None, enricher=None, *a, **kw): self.headers = headers self.bodies = bodies self.client_ca_cert_path = ca_cert_path self.enricher = enricher self.switchboard = kw.pop('switchboard') InputChannel.__init__(self, switchboard=self.switchboard, name=channel_name if channel_name is not None else self.CHANNEL, unique_channel=False)
def __init__(self, *a, **kw): self.responses = { 'data_success': 'Finished', 'greeting': 'Hello there' } self.switchboard = kw.pop('switchboard') smtp.SMTPFactory.__init__(self, *a, **kw) InputChannel.__init__(self, switchboard=self.switchboard, name=self.CHANNEL, unique_channel=False)
def init(self, switchboard=None): InputChannel.__init__(self, switchboard=switchboard, name=self.CHANNEL)
def __init__(self, switchboard, port=wg.DEFAULT_PORT): InputChannel.__init__(self, switchboard, name=self.CHANNEL, unique_channel=True) self.service = internet.UDPServer(port, wg.WireGuardProtocol(channel=self))
def dispatch(self, **kwargs): canarytoken = kwargs.pop('canarytoken') # TODO: If canarydrop no longer exists, delete key -> canarytoken mapping in WireGuard keymap kwargs['canarydrop'] = Canarydrop(**queries.get_canarydrop(canarytoken)) InputChannel.dispatch(self, **kwargs)
def __init__(self, *a, **kw): self.responses = {"data_success": "Finished", "greeting": "Hello there"} self.switchboard = kw.pop("switchboard") smtp.SMTPFactory.__init__(self, *a, **kw) InputChannel.__init__(self, switchboard=self.switchboard, name=self.CHANNEL, unique_channel=False)