Get IP from a proxied request via Tor
  • Python 86.2%
  • Dockerfile 8.2%
  • Shell 4.6%
  • Makefile 1%
Find a file
Bruno Bernard 5626f3402f first commit
2021-10-17 23:08:09 +04:00
utils first commit 2021-10-17 23:08:09 +04:00
.gitignore first commit 2021-10-17 23:08:09 +04:00
docker-compose.yml first commit 2021-10-17 23:08:09 +04:00
Dockerfile first commit 2021-10-17 23:08:09 +04:00
main.py first commit 2021-10-17 23:08:09 +04:00
Makefile first commit 2021-10-17 23:08:09 +04:00
README.md first commit 2021-10-17 23:08:09 +04:00
requirements.txt first commit 2021-10-17 23:08:09 +04:00
run.sh first commit 2021-10-17 23:08:09 +04:00

TOR control w/ Python stem

This is a quick proof of concept to show how to change the path (therefore the end-node public IP) of a TOR/Privoxy container.

More simply put: change your public IP address with Python while hiding yo' tracks.

Walkthrough

pip install requirements.txt
python main.py

Docker

Easy enough with docker-compose:

docker-compose up

Manual single docker creation if you don't want to use docker-compose:

docker run -it \
       -p 8118:8118 \
       -p 9050:9050 \
       -p 9051:9051 \
       --name tor-test \
       -d dperson/torproxy \
       -p password

Change "password" in docker and the scripts for production.