Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Man in the Middle (MITM) proxy with HTTPS support [duplicate]

We seem to be going round in circles a bit at the moment. We are looking for simple light weight, preferably ruby based proxy that enables us to do the following.

  • Proxy HTTPS requests between a browser and a Web app. e.g. GMail
  • Intercept and modify the request/responses - Man in the Middle modification
  • Generate on the fly SSL certs (or maybe us pre-configured) for use between the proxy and the browser

Using Ruby, we've experimented with em-proxy and Goliath but I don't think these are quite the right fit.

Any suggestions would be very much appreciated.

Best Regards,

Carlskii.

like image 364
carlskii Avatar asked Nov 14 '11 22:11

carlskii


People also ask

Does HTTPS stop MITM?

The only surefire way to prevent a MITM is with SSL/TLS encryption and HTTPS, which encrypts data as it passes through each gateway on the way to its intended destination.

How does a proxy work with HTTPS?

HTTPS proxies were invented to ensure communication with end-to-end security. In this flow, the client sends a special request to the proxy with the CONNECT verb. The proxy builds an opaque tunnel by connecting to the requested server using TCP and nothing else.

Can proxy server read HTTPS?

Is there a way a proxy server can read HTTPS? If the administrator of your computer cooperates, it is possible for a proxy server to sniff https connections. This is used in some companies in order to scan for viruses and to enforce guidelines of acceptable use.

How do I setup a MITM proxy?

To start up mitmproxy, type mitmproxy , and it will start up bound to port 8080. The command-line interface (CLI) has VIM-like keybindings. q will quit, and arrow keys or h , j , k , l will move you up and down through the request list. ? will load the help, and <<enter>> will drill in on a specific request.


1 Answers

There is also mitmproxy written in Python.

like image 94
Vadzim Avatar answered Sep 30 '22 02:09

Vadzim