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"