mitmproxy command not found

In this troubleshooting guide we learn how to fix mitmproxy command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mitmproxy: command not found

or when using sudo you get the following error message

sudo: mitmproxy: command not found

Solutions to mitmproxy: command not found

How To Fix mitmproxy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mitmproxy is provided by mitmproxy package.

mitmproxy is:

mitmproxy is an SSL-capable man-in-the-middle HTTP proxy. It provides a console interface that allows traffic flows to be inspected and edited on the fly.

Also shipped is mitmdump, the command-line version of mitmproxy, with the same functionality but without the frills. Think tcpdump for HTTP.

Features:

  • intercept and modify HTTP traffic on the fly
  • save HTTP conversations for later replay and analysis
  • replay both HTTP clients and servers
  • make scripted changes to HTTP traffic using Python
  • SSL interception certs generated on the fly

To fix this problem, we can install more using the command below.

sudo apt-get -y install mitmproxy

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mitmproxy.

sudo apt -y install mitmproxy

Or if you have aptitude installed you can use the following command.

sudo aptitude install mitmproxy

Summary

In this tutorial we learn how to fix mitmproxy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.