inaz2 / SimpleHTTPProxy

A Simple HTTP Proxy like Python's SimpleHTTPServer module.
37 stars 21 forks source link

This repository is NOT MAINTAINED anymore!

Use proxy2 instead.

SimpleHTTPProxy

A Simple HTTP Proxy like Python's SimpleHTTPServer module. Works on Python 2.7.

Features:

Usage

$ python SimpleHTTPProxy.py 8080

or like SimpleHTTPServer:

$ python -m SimpleHTTPProxy

When the argument is not given, SimpleHTTPProxy uses tcp/8080.

SimpleHTTPProxy provides CONNECT tunneling, in which the data is transfered with no modification.

Customize

To customize, inherit SimpleHTTPProxyHandler class and override the handler methods.

Some examples are included:

You can use these proxies just as SimpleHTTPProxy:

$ python -m SaveImagesProxy

sslstripping by SSLStripProxy

SSLStripProxy inherits SimpleHTTPProxy and implements sslstrip-like feature.

Also some examples are included:

"HTTP Strict Transport Security" policies [RFC 6797] make the browsers always use HTTPS for their domains, so this proxy doesn't work for such cases.

sslbumpping by SSLBumpProxy

SSLBumpProxy inherits SimpleHTTPProxy and implements Squid's SslBump-like feature.

An example is included:

To enable dynamic certificate generation, OpenSSL is required. If you use a static certificate, edit SSLBumpProxy.py.