summaryrefslogtreecommitdiff
path: root/signedblob-privesc.py
diff options
context:
space:
mode:
authorsubh <subh@example.com>2026-02-13 12:59:02 +0530
committersubh <subh@example.com>2026-02-13 12:59:02 +0530
commit2b2f21deeae4941a0fc447d1f0f355bf03b60284 (patch)
tree0b4b14b21ef23eb8ab30b53abf3fbf7dc882f745 /signedblob-privesc.py
parentf95897d65f2830da9ea3384a0a04aca4c9daa3ae (diff)
added the 'sub' field to the claim setmain
Diffstat (limited to 'signedblob-privesc.py')
-rw-r--r--signedblob-privesc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/signedblob-privesc.py b/signedblob-privesc.py
index d105261..8520215 100644
--- a/signedblob-privesc.py
+++ b/signedblob-privesc.py
@@ -17,6 +17,7 @@ def createJwt(service_account_email):
header = {"alg": "RS256", "typ": "JWT"}
payload = {
"iss": service_account_email,
+ "sub": service_account_email,
"scope": "https://www.googleapis.com/auth/cloud-platform",
"aud": "https://oauth2.googleapis.com/token",
"exp": now + 3600,