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://github.com/mitmproxy/netlib.git@master
pip install git+https://github.com/mitmproxy/mitmproxy.git@master

###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://github.com/mitmproxy/netlib.git@master
$ sudo pip install git+https://github.com/mitmproxy/mitmproxy.git@master

Now start up a python console and paste in these two commands – this is a workaround for [issue 32](https://github.com/mitmproxy/netlib/issues/32) :

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

Source: [github gist](https://gist.github.com/mhils/9315651)

Related Posts:

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

One Response to Install mitmproxy from source on Ubuntu

Leave a Reply

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