Exemplo n.º 1
0
def getShellFactory(interpreterType, **namespace):
    sshPortal = portalFactory(interpreterType, namespace)
    factory = manhole_ssh.ConchFactory(sshPortal)
    factory.privateKeys = {'ssh-rsa': util.getPrivKey()}
    factory.publicKeys = {'ssh-rsa': util.getPubKey()}
    factory.portal.registerChecker(cred.PublicKeyDatabase())
    return factory
Exemplo n.º 2
0
def getShellFactory(interpreterType, **namespace):
    realm = ShellTerminalRealm(namespace, CommandAPI)
    sshPortal = portal.Portal(realm)
    factory = manhole_ssh.ConchFactory(sshPortal)
    factory.privateKeys = {'ssh-rsa': dreamssh_util.getPrivKey()}
    factory.publicKeys = {'ssh-rsa': dreamssh_util.getPubKey()}
    factory.portal.registerChecker(SSHPublicKeyDatabase())
    return factory
Exemplo n.º 3
0
def getShellFactory(interpreterType, **namespace):
    realm = ShellTerminalRealm(namespace, CommandAPI)
    sshPortal = portal.Portal(realm)
    factory = manhole_ssh.ConchFactory(sshPortal)
    factory.privateKeys = {'ssh-rsa': dreamssh_util.getPrivKey()}
    factory.publicKeys = {'ssh-rsa': dreamssh_util.getPubKey()}
    factory.portal.registerChecker(SSHPublicKeyDatabase())
    return factory
Exemplo n.º 4
0
def getGameShellFactory(**namespace):
    game = None
    sshRealm = gameshell.TerminalRealm(namespace, game)
    sshPortal = portal.Portal(sshRealm)
    factory = manhole_ssh.ConchFactory(sshPortal)
    factory.privateKeys = {"ssh-rsa": util.getPrivKey()}
    factory.publicKeys = {"ssh-rsa": util.getPubKey()}
    factory.portal.registerChecker(SSHPublicKeyDatabase())
    return factory
Exemplo n.º 5
0
def getGameShellFactory(**namespace):
    game = None
    sshRealm = gameshell.TerminalRealm(namespace, game)
    sshPortal = portal.Portal(sshRealm)
    factory = manhole_ssh.ConchFactory(sshPortal)
    factory.privateKeys = {'ssh-rsa': util.getPrivKey()}
    factory.publicKeys = {'ssh-rsa': util.getPubKey()}
    factory.portal.registerChecker(SSHPublicKeyDatabase())
    return factory