Giter VIP home page Giter VIP logo

python-proxy-rotator's Introduction

Python Proxy Rotator

An automatic proxy chainer and rotator written in Python. (Supports SSL proxies)

Currently known bugs

  • Has a static set of proxies and lacks an efficient way to check if the remote proxy server is alive.
  • You may experience various "server errors" due to unstable proxy servers

Introduction

This is a multithreaded, man-in-the-middle proxy rotator acting as a relay for HTTP-requests. The goal is to make it harder to track you as a web user.

Not only is it unnecessarily overkill, but it is also really cool.

A single webpage includes mulitple files: css, images, scripts, etc. This server creates a new request for each and everyone of those objects through a new proxy, making it appear as your request acctually originates for mulitple clients. By using non-transparent SSL proxies, this will be a tough nut to crack if someone decided to listen to you outgoing data traffic.

The proxy server chains mulitple proxies consequtively (multi-hop requests) using a lesser known feature in HTTPS.

Current features:

  • FTP support
  • HTTP & HTTPS support
  • Proxy chaining (limited HTTPS proxies)
  • Accepts globally trusted certificates
  • Correctly handle SSL
  • Lets the browser/user decide whether to use HTTPS or not. This is a necessary feature due to the fact that not all servers support SSL encryption. And there is no reason to encrypt the data yourself, if your HTTPS proxy decrypts the data before it reaches the goal.

It's not magic

This example describes the life of a HTTP GET/POST request.

How it works graphics

Requirements

  • Python with SSL compiled socket
  • pyOpenSSL A high-level wrapper around a subset of the OpenSSL library

$ pip install pyOpenSSL

Usage

Change directory to the download destination and run:

$ python badger.py [-n hops]

OPTIONS
-p, --local_proxies			  # default operation
-f, --force_proxy_refresh		  # force the program to reverify the proxies 
-n CHAINLENGTH, --chainlength CHAINLENGTH # number of servers to bounce through

Set 127.0.0.1:8080 as the proxy in your favourite browser.

Kudos

This project is inspired by pymiproxy.
This project contains the CertificateAuthority() defined in pymiproxy

python-proxy-rotator's People

Contributors

jorgenkg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.