mitmproxy/examples/contrib/all_markers.py

14 lines
424 B
Python
Raw Normal View History

2022-11-29 13:28:41 +00:00
from mitmproxy import command
from mitmproxy import ctx
from mitmproxy.utils import emoji
2022-11-29 13:28:41 +00:00
@command.command("all.markers")
def all_markers():
2022-11-29 13:28:41 +00:00
"Create a new flow showing all marker values"
for marker in emoji.emoji:
2022-11-29 13:28:41 +00:00
ctx.master.commands.call(
"view.flows.create", "get", f"https://example.com/{marker}"
)
ctx.master.commands.call("flow.mark", [ctx.master.view.focus.flow], marker)