From fda4eb4f383ffeaf038a5734d6a10a5a2e310517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 3 Sep 2024 01:51:44 +0200 Subject: napad now works --- iv/orodja/napad/template.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 iv/orodja/napad/template.py (limited to 'iv/orodja/napad/template.py') diff --git a/iv/orodja/napad/template.py b/iv/orodja/napad/template.py new file mode 100755 index 0000000..2629fe9 --- /dev/null +++ b/iv/orodja/napad/template.py @@ -0,0 +1,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) -- cgit v1.2.3