mirror of
https://github.com/antitree/private-tor-network
synced 2024-11-16 20:22:41 +00:00
9 lines
304 B
Python
9 lines
304 B
Python
from stem.control import Controller
|
|
|
|
with Controller.from_port(port = 9051) as controller:
|
|
controller.authenticate("password")
|
|
|
|
print("List of relays found on the network:")
|
|
for desc in controller.get_network_statuses():
|
|
print("%s (%s) at %s" % (desc.nickname, desc.fingerprint, desc.address))
|