GCP - Persistance de Stockage

Reading time: 2 minutes

tip

Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE) Apprenez et pratiquez le hacking Azure : HackTricks Training Azure Red Team Expert (AzRTE)

Soutenir HackTricks

Stockage

Pour plus d'informations sur Cloud Storage, consultez :

GCP - Storage Enum

storage.hmacKeys.create

Vous pouvez créer un HMAC pour maintenir la persistance sur un bucket. Pour plus d'informations sur cette technique vérifiez ici.

bash
# Create key
gsutil hmac create <sa-email>

# Configure gsutil to use it
gsutil config -a

# Use it
gsutil ls gs://[BUCKET_NAME]

Un autre script d'exploitation pour cette méthode peut être trouvé ici.

Donner un accès public

Rendre un bucket accessible au public est une autre façon de maintenir l'accès au bucket. Vérifiez comment le faire dans :

GCP - Storage Post Exploitation

tip

Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE) Apprenez et pratiquez le hacking Azure : HackTricks Training Azure Red Team Expert (AzRTE)

Soutenir HackTricks