summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-03 03:38:42 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-03 03:38:42 +0300
commit4f2d8bb287b72ab58cf6d4f25ff6ba2259e15f68 (patch)
treea398cedc9ff92780d78ca2942080be89af7bc799
initial
-rw-r--r--adobe-magic.py10
-rw-r--r--proxy.pac8
2 files changed, 18 insertions, 0 deletions
diff --git a/adobe-magic.py b/adobe-magic.py
new file mode 100644
index 0000000..b40e243
--- /dev/null
+++ b/adobe-magic.py
@@ -0,0 +1,10 @@
+import json
+
+from mitmproxy import http
+
+
+def response(flow: http.HTTPFlow) -> None:
+ if flow.request.path.startswith("/asnp/nud/v") and flow.response and flow.response.content:
+ data = json.loads(flow.response.content)
+ data['workflow'] = {}
+ flow.response.text = json.dumps(data, separators=(',', ':')) \ No newline at end of file
diff --git a/proxy.pac b/proxy.pac
new file mode 100644
index 0000000..6dbdbf3
--- /dev/null
+++ b/proxy.pac
@@ -0,0 +1,8 @@
+function FindProxyForURL(url, host) {
+ if ( shExpMatch(host, "*.adobe.com") || host == "adobe.com"
+ || shExpMatch(host, "*.adobelogin.com") || host == "adobelogin.com"
+ || shExpMatch(host, "*.adobe.io") || host == "adobe.io") {
+ return "SOCKS 127.0.0.1:56789";
+ }
+ return "DIRECT";
+}