@blueprint.route("/shell", methods=["GET"])
@api_wrapper
@require_login
def team_shell_hook():
	team = api.team.get_team()
	if "shell_user" in team and "shell_pass" in team:
		return {
			"success": 1,
			"user": team["shell_user"],
			"pass": team["shell_pass"]
		}
	else:
		shell_account = api.team.assign_shell_account(team["tid"])
		print(shell_account)
		return {
			"success": 1,
			"user": shell_account["username"],
			"pass": shell_account["password"]
		}
dataset/ETHPy150Open EasyCTF/easyctf-2015/api/api/routes/team.py/team_shell_hook/original