import mitmproxy.http
from mitmproxy import ctx
class Counter:
def request(self, flow: mitmproxy.http.HTTPFlow):
ctx.log.info(flow.request.url)
ctx.log.warn(flow.request.url)
ctx.log.error(flow.request.url)
def response(self, flow: mitmproxy.http.HTTPFlow):
if "https://github.com/mochazi" in flow.request.url:
flow.response.set_text("Hi, I am Mochazi!")
addons = [
Counter()
]
Email: mochazi888@gmail.com
Twitter: @mochazi888
Github: @mochazi