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.
geoffclapp/rotate_ip
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=============================================================== |_ _| _ \| _ \ / _ \_ _|/ \|_ _| ____| | || |_) | |_) | | | || | / _ \ | | | _| | || __/| _ <| |_| || |/ ___ \| | | |___ |___|_|___|_| \_\\___/ |_/_/ \_\_| |_____| |_____| (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
About
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.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published