summaryrefslogtreecommitdiffstats
path: root/iv/orodja/napad/template.py
blob: 2629fe99b6d242ff896a8301e1949832b7ced601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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)