1

有没有办法打印出 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 地址,我将如何将其写入?

4

0 回答 0