Skip to content
/ RotaTor Public

Python Class for changing the Tor Identity, Python 3.x

Notifications You must be signed in to change notification settings

Ak-wa/RotaTor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RotaTor

python size lastcommit follow

Python Class for changing the tor identity

Usage in terminal:

Terminal 1 (used for starting tor service):

tor

Terminal 2 (runs the code):

python3 example.py

Usage in Code:

example.py

from rotaTor import Rotator
rot = Rotator(verbose=False)
for i in range(3):
    rot.rotate()
    print(rot.get_node())
  • You can get your external IP address(current exit node) with
    get_node()
  • If called with verbose=True, it will do that automatically

Easy Setup:

git clone https://github.com/Ak-wa/RotaTor.git
cd RotaTor/
apt install tor
pip3 install -r requirements.txt
echo -en 'ControlPort 9051\nCookieAuthentication 1' >> /etc/tor/torrc

after that close the terminal; open a new one

Setup breakdown:

  • To make this work, you need to add the following lines to your "torrc" file:
    ControlPort 9051
    CookieAuthentication 1

  • You can find the file here:
    if you compiled tor from source:
    /usr/local/etc/tor/torrc
    if you installed a pre-built package:
    /etc/tor/torrc or /etc/torrc
    fallback location if above file is not found:
    $HOME/.torrc
    on windows in TorBrowser folder:
    \Tor Browser\Browser\TorBrowser\Data\Tor\torrc

About

Python Class for changing the Tor Identity, Python 3.x

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages