Giter Club home page Giter Club logo

python-tor-bridges's Introduction

python through tor with bridges

install

sudo apt update -y
sudo apt install tor torsocks torbrowser-launcher obfs4proxy -y

start torbrowser-launcher and install browser
configure time/timezone at machine
start tor browser -> configure connection -> request a bridge or write this bot @GetBridgesBot to get BRIDGES

start tor

sudo systemctl status tor
sudo systemctl start tor

go to /etc/tor/torrc

sudo nano /etc/tor/torrc

and add this to file with ur bridges

ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
UseBridges 1
Bridge obfs4 IP:PORT FINGERPRINT cert=CERTIFICATE iat-mode=0
Bridge obfs4 IP:PORT FINGERPRINT cert=CERTIFICATE iat-mode=0

# more like this

ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
UseBridges 1
Bridge obfs4 49.13.85.208:43809 B60644EF12A01CEE1ED38E3FA90FC42A4C787E6B cert=5q8QalWBRIF5uBiCpiTdEBwAqboWSr21GqG2aiqr7NJe+vO8XUFsxsziZ6vmUDBMBaodQQ iat-mode=0
Bridge obfs4 49.13.85.208:43809 B60644EF12A01CEE1ED38E3FA90FC42A4C787E6B cert=5q8QalWBRIF5uBiCpiTdEBwAqboWSr21GqG2aiqr7NJe+vO8XUFsxsziZ6vmUDBMBaodQQ iat-mode=0

restart tor

sudo systemctl restart tor

usage

get requests lib

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

check tor connection from https://check.torproject.org/

torsocks python3 tor.py

get page

torsocks python3 page.py

change ip to tor

sudo systemctl restart tor

for experiment use without torsocks

python3 tor.py

python-tor-bridges's People

Contributors

savasick avatar

Watchers

 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.