I made a quick traffic work using python. Hope it can be of some help for some of you. Also reach out if you think it can be improved.
Don't forget to leave a like! Cheers!
[ Hidden Content! ]
requirements to run the script.
settings for the torrc file
Start tor and enable it.
Check if the tor Socks is working
You should get an good output where some code is outputed without error.
Then it is time to create the script:
Then run the script and let it run
Code:
sudo apt update -y && sudo apt install tor && sudo apt install -y python3-pip && pip3 install --user stem requests[socks] fake-useragent
settings for the torrc file
Code:
sudo bash -c "echo -e '\nSocksPort 9050\nControlPort 9051\nCookieAuthentication 0\nHashedControlPassword '$(tor --hash-password '<yourpasswordgoeshere>' | tail -n1) >> /etc/tor/torrc"
Start tor and enable it.
Code:
sudo systemctl enable tor && sudo systemctl start tor && sudo systemctl restart tor
Check if the tor Socks is working
Code:
torsocks curl https://check.torproject.org
You should get an good output where some code is outputed without error.
Then it is time to create the script:
Then run the script and let it run
Code:
python3 <nameofyourscript>.py