Beispiel #1
0
def command():
    id = bottle.request.forms.shellid
    cmd = bottle.request.forms.command
    path = bottle.request.forms.path
    shellinfo = get_shell_from_id(id)
    shell = Shell(shellinfo['url'], shellinfo['pwd'], shellinfo['plugin'],
                  shellinfo['method'], shellinfo['coding'])
    return shell.execute_command(cmd, path)