jrmdev / mitm_relay

Hackish way to intercept and modify non-HTTP protocols through Burp & others.
Apache License 2.0
582 stars 97 forks source link

Forwarding to Burp/proxy does not happen with -p set #28

Closed domi007 closed 2 years ago

domi007 commented 2 years ago

Since the major update of 2022 the tool works great, however when setting a proxy with -p it does not actually forward traffic to the proxy, because the urlopen call is never told to use a proxy. I was able to fix this by prefixing the call to mitm_relay.py with the environment variable HTTP_PROXY like this:

HTTP_PROXY=127.0.0.1:8080 python3 mitm_relay -p 127.0.0.1:8080

jrmdev commented 2 years ago

Nice catch, I will take a look at it shortly. Thank you for reporting.

jrmdev commented 2 years ago

Fixed in 1b74741fbdd27b31d18e47741cab4c8b7d7baf15.

Thank you.