DO - Apps

支持 HackTricks

基本信息

来自文档: 应用平台是一种平台即服务(PaaS)产品,允许开发人员直接将代码发布到 DigitalOcean 服务器,无需担心底层基础设施。

您可以直接从 githubgitlabdocker hubDO 容器注册表(或示例应用程序)运行代码。

在定义 env var 时,可以将其设置为 encrypted。检索其值的唯一方法是在运行应用程序的主机内执行 commands

一个 应用 URL 如下所示 https://dolphin-app-2tofz.ondigitalocean.app

枚举

doctl apps list # You should get URLs here
doctl apps spec get <app-id> # Get yaml (including env vars, might be encrypted)
doctl apps logs <app-id> # Get HTTP logs
doctl apps list-alerts <app-id> # Get alerts
doctl apps list-regions # Get available regions and the default one

应用程序没有元数据端点

RCE & 加密环境变量

要直接在执行应用程序的容器中执行代码,您将需要访问控制台并转到**https://cloud.digitalocean.com/apps/<app-id>/console/<app-name>**。

这将为您提供一个shell,只需执行**env,您就可以看到所有环境变量**(包括那些定义为加密的变量)。

支持HackTricks

Last updated