Giter Site home page Giter Site logo

geoffclapp / rotate_ip Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 5.0 13 KB

Anonymize and rotate the IP address on Ubuntu 16.04 LTS with Tor and Python3. Uses selenium to drive your browser and confirm your IP has changed. Developed on Ubuntu 16.04. Uses Tor, Privoxy, Python 3.?: requests, stem, require. Its just a hack. See the README for necessary bash commands.

Python 100.00%

rotate_ip's Introduction

===============================================================
        |_ _|  _ \|  _ \ / _ \_   _|/ \|_   _| ____|
         | || |_) | |_) | | | || | / _ \ | | |  _|
         | ||  __/|  _ <| |_| || |/ ___ \| | | |___
        |___|_|___|_| \_\\___/ |_/_/   \_\_| |_____|
             |_____|
                        (ITS A MISNOMER I THINK)
About:
------
Anonymize and rotate IP on on Ubuntu 16.04 with Python3.
Uses selenium to drive your browser and confirm your IP has changed.
Developed by Geoff Clapp. Uses Tor, Privoxy, Python 3.?, requests, stem, require.

Required Bash commands:
-----------------------
Install Tor:
$ sudo apt-get update
$ sudo apt-get install tor

Restart Tor:
$ sudo /etc/init.d/tor restart

Generate a hash:
$ tor --hash-password mypassword

Edit torrc file:
$ sudo nano /etc/tor/torrc
## uncomment these items and modify hash
ControlPort 9051
CookieAuthentication 1
HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C

Restart:
$ sudo /etc/init.d/tor restart

Install privoxy router:
$ sudo apt-get install privoxy

Edit privoxy config:
$ sudo nano /etc/privoxy/config
forward-socks5 / localhost:9050 .

$ /etc/init.d/privoxy restart

$ sudo netstat -tulpan | grep "8118"
$ sudo netstat -tulpan | grep "9050"
$ sudo netstat -tulpan | grep "9051"

privoxy listens on 8118 and forwards to tor at 9050.
Tor also operates the control channel at 9051.

Set your browser to forward to 127.0.0.1:8118 for Tor browsing.

Running the application will launch selenium webdriver, and open a browser window to show your ip.
Inside of the application all network is sent through Tor. Your IP will rotate ten times:

$ sudo python3 setup.py

Links:
--------------------
https://check.torproject.org/
http://sacharya.com/crawling-anonymously-with-tor-in-python/
https://www.ipify.org/
https://stem.torproject.org/tutorials/the_little_relay_that_could.html
https://www.privoxy.org/user-manual/quickstart.html
http://en.linuxreviews.org/HOWTO_use_the_Internet_anonymously_using_Tor_and_Privoxy
http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#using-a-proxy

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.