Skip to content

Instantly share code, notes, and snippets.

@qianlifeng
Created July 26, 2018 07:24
Show Gist options
  • Save qianlifeng/fa8a9b2f432cf7c1185c40b4ec93fd0c to your computer and use it in GitHub Desktop.
Save qianlifeng/fa8a9b2f432cf7c1185c40b4ec93fd0c to your computer and use it in GitHub Desktop.
mitm.it 修改返回结果
from mitmproxy import flowfilter
from mitmproxy import ctx
class Intercept:
def response(self, flow):
if flow.request.url == "https://www.zbg.com/exchange/fund/controller/website/fundwebsitecontroller/getpayoutcoinrecord":
flow.response.text = r'xxxxxx'
addons = [
Intercept()
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment