From 91d03df8a6ea971f1adbc071fe1f4e056f0e7b36 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Tue, 27 Apr 2021 19:35:03 +0500 Subject: Chromium with mitmproxy. --- mitm-chrome | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 mitm-chrome (limited to 'mitm-chrome') diff --git a/mitm-chrome b/mitm-chrome new file mode 100755 index 0000000..f154b1a --- /dev/null +++ b/mitm-chrome @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +check_command() { + if ! command -v "$1" &>/dev/null ; then + echo "No $1 found." + exit 1 + fi +} + +check_command chromium +check_command mitmproxy + +PROXY_PORT=38752 +HTTP_PROXY=http://localhost:$PROXY_PORT chromium --temp-profile "$@" >/dev/null 2>&1 & +mitmproxy --listen-port=$PROXY_PORT -- cgit v1.2.3