mirror of
https://github.com/yoncodes/BD2PS.git
synced 2026-11-04 21:46:49 +01:00
added readme
This commit is contained in:
1 parent
e58fd190b4
commit
1badd8cb4f
2 files changed
+21
No files matched your search
@@ -0,0 +1,10 @@
|
|||||||
|
## BD2 PS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
run the mitm script
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- DB auto creates for new users
|
||||||
@@ -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