Install mitmproxy from source on Ubuntu

If you want to live on the dangerous side, you can install mitmproxy from its master branch. If you encounter any bugs, please do us the favor and report them on the Github issue tracker briefly.

Install from source using PIP

pip uninstall mitmproxy netlib
pip install git+https:[email protected]
pip install git+https:[email protected]

Install from source on Ubuntu

Installing mitmproxy master from sources on stock Ubuntu – first uninstall using:

pip uninstall mitmproxy netlib

Now install the required tools:

$ sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev python-pip libxml2-dev libxslt-dev git

Now install with sudo:

$ sudo pip install git+https:[email protected]
$ sudo pip install git+https:[email protected]

Now start up a python console and paste in these two commands – this is a workaround for issue 32 :

$ sudo python  # 
>>> from netlib import certffi
>>> exit()

Source: github gist

Related Posts:

This entry was posted in Linux and tagged , , . Bookmark the permalink.

One Response to Install mitmproxy from source on Ubuntu

  1. Charles says:

    Nice article, it helped me. Could you please tell me how to set a parent proxy using mitm proxy. I got into the console by typing mitmproxy -T –host. Please help me with the command

Leave a Reply

Your email address will not be published. Required fields are marked *