mirror of
https://github.com/yoncodes/BD2PS.git
synced 2026-08-04 22:02:15 +02:00
added readme
This commit is contained in:
10
README.md
Normal file
10
README.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## BD2 PS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
run the mitm script
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- DB auto creates for new users
|
||||||
11
scripts/prox.py
Normal file
11
scripts/prox.py
Normal file
@@ -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"
|
||||||
Reference in New Issue
Block a user