From 1badd8cb4fe2eb27aa59ce81651bb050e9b5f77b Mon Sep 17 00:00:00 2001 From: yoncodes Date: Tue, 28 Oct 2025 21:28:07 -0400 Subject: [PATCH] added readme --- README.md | 10 ++++++++++ scripts/prox.py | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 scripts/prox.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..281f42d --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +## BD2 PS + +```bash + +run the mitm script + +``` + +## Features +- DB auto creates for new users \ No newline at end of file diff --git a/scripts/prox.py b/scripts/prox.py new file mode 100644 index 0000000..d971a5d --- /dev/null +++ b/scripts/prox.py @@ -0,0 +1,11 @@ +from mitmproxy import http + + +def request(flow): + + # Then handle the redirect for other requests + if flow.request.pretty_host.endswith("pmang.cloud"): + flow.request.host = "127.0.0.1" + flow.request.port = 8443 + flow.request.scheme = "https" + flow.request.headers["Host"] = "localhost"