Is it possible to save the all requests/responses and replay the changed requests automatic?

Is it possible to save the all requests/responses and replay the changed requests automatic?

Hello,thanks a lot for read and help me.
1.I want to used MITMProxy save the all requests/responses in mysql database.(I done.use “mitmdump -s savetomysql.py”)
2.Then,I want to change the requests(stored in the 1),for example,the original HTTP Request post data is “user=admin1&password=pass1”,and I want to change to “user=admin2&password=pass2”,replay them automatic.

Could you help me how to do it?

Is it possible to get the size of Response Data?

Thanks a lot.

You can look at modify_form example or modify_querystring example.

1 Like