How to change the Tor exit node programmatically to get a new IP?

前端 未结 11 1213
别跟我提以往
别跟我提以往 2020-12-07 10:41

I have Tor running on my computer, and I need to change the Tor exit node every five minutes. For example, if I start using Tor via some exit node, then in 5 minutes I want

11条回答
  •  无人及你
    2020-12-07 11:04

    I have done something different here... i wrote a PHP program that can communicate with linux shell. The program would restart tor in regular intervals.

    So when tor is restarted it gets a new IP.... Yeah.....!!

    exec("/etc/init.d/tor restart",$ioOut);
    print_r($ioOut); //output from shell after executing the command
    sleep(25);
    

    You can also write a shell script to do this.

    I am now in search of a windows option to do this. The problem is .. in windows Tor is a service which cannot be restarted.

提交回复
热议问题