Trouble authenticating Tor with python

后端 未结 1 1033
南笙
南笙 2021-01-13 01:08

Probably doing something very silly here, but I\'m having some trouble authenticating automatically through Tor.

I\'m using 32 bit ubuntu 12.04 with obfuscated bridg

相关标签:
1条回答
  • 2021-01-13 01:32

    That error means that you set the HashedControlPassword option in your torrc. I would suggest option for CookieAuthentication 1 instead then using a controller library rather than doing this from scratch.

    What you're trying to do here (issue a NEWNYM) is a very, very common request (1, 2) so I just added a FAQ entry for it. Here's an example using stem...

    from stem import Signal
    from stem.control import Controller
    
    with Controller.from_port(port = 9051) as controller:
      controller.authenticate()
      controller.signal(Signal.NEWNYM)
    
    0 讨论(0)
提交回复
热议问题