Skip to content

Commit

Permalink
try mitmproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
nesmabadr committed Nov 8, 2024
1 parent 6f07787 commit b7df235
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/tests/setup_https_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ openssl req -x509 -newkey rsa:2048 -keyout $KEY_FILE -out $CERT_FILE -days 30 -n
sudo cp $CERT_FILE /etc/ssl/certs/
sudo update-ca-certificates

curl -Lo mitmproxy https://github.com/mitmproxy/mitmproxy/releases/latest/download/mitmproxy
chmod +x mitmproxy
wget https://downloads.mitmproxy.org/11.0.0/mitmproxy-11.0.0-linux-x86_64.tar.gz -O mitmproxy.tar.gz
tar -xzvf mitmproxy.tar.gz
chmod +x mitmdump

./mitmproxy --listen-port 8081 --mode reverse:https://localhost:8080
./mitmdump --listen-port 8081 --mode reverse:https://localhost:8080 &
export HTTPS_PROXY=http://localhost:8081

# Start Python HTTPS server
Expand Down

0 comments on commit b7df235

Please sign in to comment.