tarun14110
tarun14110

Reputation: 990

HTTP proxy to modify outgoing HTTP requests on fly

I need to modify all outgoing HTTP requests from my browser on fly.

1) Is there some python package I can use for the same? I am able to capture the outgoing requests using scapy, but not able to modify on the fly.

2) Can I modify the outgoing HTTP request in chrome extension? Do Chrome provide some API that can help?

Upvotes: 0

Views: 1286

Answers (1)

einverne
einverne

Reputation: 6682

You can set your browser's proxy to mitmproxy and use mitmproxy scripting to modify the output traffic.

You do not need Chrome extension to achieve that. You can load your own script.py like this:

mitmdump -s your_script.py

There are lots of examples your can check from mitmproxy GitHub page.

Upvotes: 2

Related Questions