# GCP - Composer Enum

{{#include ../../../banners/hacktricks-training.md}}

## Basiese Inligting

**Google Cloud Composer** is 'n volledig bestuurde **werkvloei-orchestrasiediens** gebou op **Apache Airflow**. Dit stel jou in staat om pyplyne te skryf, te skeduleer en te monitor wat oor wolke en plaaslike datacenters strek. Met GCP Composer kan jy jou werkvloei maklik integreer met ander Google Cloud dienste, wat doeltreffende data-integrasie en analise take fasiliteer. Hierdie diens is ontwerp om die kompleksiteit van die bestuur van wolk-gebaseerde data werkvloei te vereenvoudig, wat dit 'n waardevolle hulpmiddel maak vir data-ingenieurs en ontwikkelaars wat groot skaal data verwerkings take hanteer.

### Enumerasie
```bash
# Get envs info
gcloud composer environments list --locations <loc>
gcloud composer environments describe --location <loc> <environment>

# Get list of dags
gcloud composer environments storage dags list --environment <environment> --location <loc>
# Download dags code
mkdir /tmp/dags
gcloud composer environments storage dags export --environment <environment> --location <loc> --destination /tmp/dags

# List Data from composer
gcloud composer environments storage data list --environment <environment> --location <loc>
# Download data
mkdir /tmp/data
gcloud composer environments storage data export --environment <environment> --location <loc> --destination /tmp/data

# List Plugins from composer
gcloud composer environments storage plugins list --environment <environment> --location <loc>
# Download plugins
mkdir /tmp/plugins
gcloud composer environments storage data export --environment <environment> --location <loc> --destination /tmp/plugins
```
### Privesc

In die volgende bladsy kan jy kyk hoe om **komposer toestemmings te misbruik om voorregte te verhoog**:

{{#ref}}
../gcp-privilege-escalation/gcp-composer-privesc.md
{{#endref}}

{{#include ../../../banners/hacktricks-training.md}}
