Ejemplo n.º 1
0
 def __init__(self, client_address, server, socket, session, options):
     self.session = session
     self.auth_count = 0
     server_key = options["key"]
     ssh_wrapper.host_key = RSAKey(filename=server_key)
     request = ssh_wrapper.dummy_request()
     request._sock = socket
     SSHHandler.__init__(self, request, client_address, server)
Ejemplo n.º 2
0
    def __init__(self, client_address, server, socket, session, options, key):
        self.session = session
        self.auth_count = 0
        self.working_dir = None
        self.username = None

        SshWrapper.host_key = key
        # TODO: Figure out why this is necessary
        request = SshWrapper.dummy_request()
        request._sock = socket
        # TODO END

        SSHHandler.__init__(self, request, client_address, server)
Ejemplo n.º 3
0
    def __init__(self, client_address, server, socket, session, options, key):
        self.session = session
        self.auth_count = 0
        self.working_dir = None
        self.username = None

        SshWrapper.host_key = key
        # TODO: Figure out why this is necessary
        request = SshWrapper.dummy_request()
        request._sock = socket
        # TODO END

        SSHHandler.__init__(self, request, client_address, server)
Ejemplo n.º 4
0
    def __init__(self, client_address, server, socket, session, options, key):
        self.session = session
        self.auth_count = 0
        self.working_dir = None
        self.username = None
        self.banner = 'SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8'
        if 'protocol_specific_data' in options and 'banner' in options[
                'protocol_specific_data']:
            self.banner = options['protocol_specific_data']['banner']

        SshWrapper.host_key = key
        # TODO: Figure out why this is necessary
        request = SshWrapper.dummy_request()
        request._sock = socket
        # TODO END

        SSHHandler.__init__(self, request, client_address, server)
Ejemplo n.º 5
0
    def __init__(self, client_address, server, socket, session, options, vfs, key):
        self.session = session
        self.auth_count = 0
        self.vfs = vfs
        self.working_dir = None
        self.username = None

        SshWrapper.host_key = RSAKey(filename=key)
        request = SshWrapper.dummy_request()
        request._sock = socket

        SSHHandler.__init__(self, request, client_address, server)

        class __MixedPtyHandler(TelnetToPtyHandler, BeeTelnetHandler):
            # BaseRequestHandler does not inherit from object, must call the __init__ directly
            def __init__(self, *args):
                TelnetToPtyHandler.__init__(self, *args)
        self.pty_handler = __MixedPtyHandler
Ejemplo n.º 6
0
    def __init__(self, client_address, server, socket, session, options, vfs,
                 key):
        self.session = session
        self.auth_count = 0
        self.vfs = vfs
        self.working_dir = None
        self.username = None

        SshWrapper.host_key = RSAKey(filename=key)
        request = SshWrapper.dummy_request()
        request._sock = socket

        SSHHandler.__init__(self, request, client_address, server)

        class __MixedPtyHandler(TelnetToPtyHandler, BeeTelnetHandler):
            # BaseRequestHandler does not inherit from object, must call the __init__ directly
            def __init__(self, *args):
                TelnetToPtyHandler.__init__(self, *args)

        self.pty_handler = __MixedPtyHandler