This is a mitmproxy script which will decrypt Netflix MSL requests and responses
mitmdump -s msl_decrypt.py
(8080 is the default port, can be changed with -p
option)proxy.log
mitmdump -s msl_decrypt.py
(8080 is the default port, can be changed with -p
option)Use a Proxy Server
switch to OnDon't use the mitmproxy Windows installer because it includes a bundled python runtime which won't see any libraries installed with pip.
Installing mitmproxy with pip should work. Alternatively, the Linux version can be used in WSL.
For the decryption to work, mitmproxy has to intercept MSL handshake. That usually happens only after the very first login to Netflix or when a previous session has expired.
To force new handshake, either clear all cookies and local storage for all Netflix domains or just create a new browser profile which will have empty history.
After the script is first run, it will save the negotiated AES key to current working directory and use it next time.