aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";
+}