Created
July 26, 2018 07:24
-
-
Save qianlifeng/fa8a9b2f432cf7c1185c40b4ec93fd0c to your computer and use it in GitHub Desktop.
mitm.it 修改返回结果
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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