有没有办法通过干库打印出TOR IP地址

时间:2017-03-23 16:32:06

标签: python-3.x tor stem

有没有打印出TOR生成的IP地址,以确保它没有使用我的IP地址?

这是我的代码:

from stem import Signal
from stem.control import Controller

def tor_connection():
    with Controller.from_port(port=9051) as controller:
        controller.authenticate(password='password')
        controller.signal(Signal.NEWNYM)
        time.sleep(controller.get_newnym_wait())

如果有办法打印出由TOR生成的IP地址,我该怎么写呢?

0 个答案:

没有答案