Skip to content

Instantly share code, notes, and snippets.

@hoffrocket
Created March 22, 2016 12:53
Show Gist options
  • Save hoffrocket/57ecfa78e0a440d8c861 to your computer and use it in GitHub Desktop.
Save hoffrocket/57ecfa78e0a440d8c861 to your computer and use it in GitHub Desktop.
mitm moat body replacement
# mitmproxy -s this_script.py
def response(context, flow):
if flow.request.host == "z.moatads.com" and flow.request.path.startswith("/FRSQ/ios/status.json"):
flow.response.status_code = 200
flow.response.reason = "OK"
flow.response.content = "98e3f87ddccbbc4e7bfe70ad4679308073ad7169"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment