Video Content
- Welcome to the mitmproxy tutorial. In this lesson we cover the modification of intercepted requests.
- We configure and use the same interception rule as in the last tutorial.
- Press
i
to prepopulate mitmproxy’s command prompt, enter the flow filter~u /Dunedin & ~q
, and pressENTER
.
- Let’s generate a request using
curl
in a separate terminal.
- We now want to modify the intercepted request.
- Put the focus (
>>
) on the intercepted flow. This is already the case in our example.
- Press
ENTER
to open the details view for the intercepted flow.
- Press
e
to edit the intercepted flow.
- mitmproxy asks which part to modify.
- Select
path
by using your arrow keys and pressENTER
.
- mitmproxy shows all path components line by line, in our example its just
Dunedin
.
- Press
ENTER
to modify the selected path component.
- Replace
Dunedin
withInnsbruck
.
- Press
ESC
to confirm your change.
- Press
q
to go back to the flow details view.
- Press
a
to resume the intercepted flow.
- You see that the request URL was modified and
wttr.in
replied with the weather report forInnsbruck
.
- In the next lesson you will learn to replay flows.