Update gcp-storage-privesc.md

This commit is contained in:
Jaime Polop
2026-02-23 11:11:37 +01:00
committed by GitHub
parent 0cfe8fc87d
commit a05e50758b

View File

@@ -99,7 +99,7 @@ gsutil hmac create <sa-email> # You might need to execute this inside a VM insta
## If you have TROUBLES creating the HMAC key this was you can also do it contacting the API directly: ## If you have TROUBLES creating the HMAC key this was you can also do it contacting the API directly:
PROJECT_ID = '$PROJECT_ID' PROJECT_ID = '$PROJECT_ID'
TARGET_SERVICE_ACCOUNT = f"exam-storage-sa-read-flag-3@{PROJECT_ID}.iam.gserviceaccount.com" TARGET_SERVICE_ACCOUNT = f"storage-sa@{PROJECT_ID}.iam.gserviceaccount.com"
ACCESS_TOKEN = "$CLOUDSDK_AUTH_ACCESS_TOKEN" ACCESS_TOKEN = "$CLOUDSDK_AUTH_ACCESS_TOKEN"
import requests import requests
import json import json