blob: f154b1a213b8ac8a8bee6093a8b53092b8934e5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|