Questions tagged [mitmproxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

How can I route a specific local device through a proxy? (Smart TV with no available proxy configuration, only gateway+dns)

Current Setup https://i.imgur.com/yEg2lg3.png Currently just running a pi-hole DNS, and a lighttpd server on port 80 to access pi-hole admin web interface. I have made a DHCP reservation on my router ...
user avatar
0 votes
1 answer
2k views

"Received HTTP code 400 from proxy after CONNECT", trying to put mitmproxy behind nginx

I have a mitmproxy running on port 2011. I can use it by itself, with curl -x http://127.0.0.1:2011 google.com. However, I now want to put it behind nginx under the domain name proxy.history.test. ...
user avatar
0 votes
1 answer
299 views

How to use docker container as a proxy?

I have the following docker-compose: version: '3' services: mitmproxy: image: johnmccabe/mitmweb container_name: mitmproxy command: --cadir /ca --wiface 0.0.0.0 restart: always ...
user avatar
3 votes
1 answer
3k views

Bridge + nftables: How to redirect incoming HTTP/HTTPS traffic to local port 8080?

I have set up a bridge and would like to redirect HTTP/HTTPS traffic traversing it to a local port (8080) so that I can further process it using mitmproxy. So far I was using a combination of ...
user avatar
  • 61
1 vote
0 answers
657 views

Why does my Docker container eventually lose network connection during selenium testing?

I was given a couple of Docker images for my automated testing on MacOS -- one for mitmproxy (as provided by that third party), the other supports the python/selenium tests I wrote earlier (this image ...
user avatar
  • 11
2 votes
1 answer
994 views

Is it possible to make OpenSSL work with gnutls?

I have libvirt, one client and one server. Libvirt uses gnutls implementation of tls. I want to use mitmproxy and put in the middle between client and remote server. But mitmproxy uses different ...
user avatar
0 votes
1 answer
281 views

Troubleshooting proxy connection error on legacy app

I'm having to support some legacy client code which makes a network connection to a server using a proprietary protocol over port 1234. A straight internet connection on the client machine works fine, ...
user avatar
  • 433
12 votes
4 answers
2k views

Apache: Validate SSL chain of trust to prevent MITM-attacks?

I just realized that SSL man-in-the-middle attacks are far more common than I thought, especially in corporate environments. I've heard about and seen myself several enterprises which have a ...
user avatar
  • 259
1 vote
2 answers
1k views

How to prevent a third party from proxying an HTTPS website?

I am hosting some kind of database management interface on https://www.prettylongdomainname.example/ I have implemented HTTP Strict Transport Security to prevent people accessing this website over ...
user avatar
0 votes
0 answers
288 views

How can I intercept http requests, respond immediately with a custom http response, and also forward the original http request to the server?

I have an application that is stalling each time it makes a http request to a server. It stalls until the response is received from the server. The problem is, the server takes a while to respond to ...
user avatar
  • 181
1 vote
2 answers
15k views

How to configure mitmproxy to intercept https?

I am trying to use mitmproxy to debug some https requests. I have configured mitmproxy to listen to a certain port: mitmproxy --listen-port 44700 I have configured my environment properly: export ...
user avatar
  • 3,920
0 votes
1 answer
828 views

Setting up transparent MitM HTTPS proxy for IoT device?

I have an IoT device that communicates with a remote server via HTTPS over port 443. I would like to intercept the HTTP/HTTPS communication - e.g. using Charles or mitmproxy. If it was a desktop or ...
user avatar
1 vote
1 answer
615 views

How to send outgoing TCP packets on Windows through a remote Linux server?

Let's say I have a Windows computer and a Linux server. I'm looking for a way to route outgoing TCP packets on the Windows computer (all ports) through the Linux server. The Linux server would have ...
user avatar
  • 13
7 votes
3 answers
9k views

Is SSLsplit the right tool to intercept and re-encrypt HTTPS traffic on a wifi router?

I'm looking to do a vulnerability research on products running on a variety of devices by intercepting their HTTPS traffic, but I don't want to modify the devices aside from installing a custom cert. ...
user avatar