From 4f2d8bb287b72ab58cf6d4f25ff6ba2259e15f68 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 3 May 2022 03:38:42 +0300 Subject: initial --- adobe-magic.py | 10 ++++++++++ proxy.pac | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 adobe-magic.py create mode 100644 proxy.pac 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"; +} -- cgit v1.2.3