Update mitmproxy alternate server script to support WebSocket packages
Categories
(Testing :: Raptor, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: Bebe, Assigned: Bebe)
References
Details
Currently we don't support this type of packages in mitmproxy
Because of this we can't replay https://hubs.mozilla.com/spES8RP/treasured-spirited-huddle
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
tested this locally:
I managed to get it to work with 4.0.4 and adding "--set stream_websockets=True",
note:
you need server replay for 4.0.4 with no websockets changes
see
https://docs.mitmproxy.org/stable/overview-features/#websockets
https://docs.mitmproxy.org/stable/concepts-options/
| Assignee | ||
Comment 3•7 years ago
|
||
More investigation and development is required here
Updated•7 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
:tarek do you have any experience with this?
| Assignee | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
no, but I can probably help
In theory, mitmproxy should support the websocket protocol and do the right things.
what problem do you have?
| Assignee | ||
Comment 6•6 years ago
|
||
Adding this here also from bug 1517799
From my research:
- WPR does not support WebSockets. Tested using record/playback on http://websocket.org/echo.html
- MitmProxy partially supports WebSockets:
- Out of the box when we use a recording containing websockets mitm crashes: https://github.com/mitmproxy/mitmproxy/issues/3564
- We can implement a plugin for websockets similar with alternate-server-replay but we might hit some other issues: https://github.com/mitmproxy/mitmproxy/issues/3396
| Assignee | ||
Comment 7•6 years ago
|
||
:Tarek we need a similar replay algorithm as the one for http in alternate-server-replay
MITM already has some WebSoket addon integration:
https://docs.mitmproxy.org/stable/addons-events/
| Assignee | ||
Updated•6 years ago
|
Description
•