I can get the current with this stem code.
#!/bin/python
from stem import CircStatus
from stem.control import Controller
with Controller.from_port(port = 9051) as controller:
controller.authenticate()
for circ in sorted(controller.get_circuits()):
if circ.status != CircStatus.BUILT:
continue
print("Circuit %s" % (circ.id))
How would you list all tor circuits that have ever been established from the moment that tor has been started?
To make things clear, instead of listing the current circuit only (say number 7) I want to list all c
print
statement is happening outside of thefor
loop. – cacahuatl Jan 10 '17 at 17:55