M
M
Mile43111122020-02-03 11:38:11
PHP
Mile4311112, 2020-02-03 11:38:11

Why doesn't the TOR proxy change?

5e37db68760f7767991038.png

I did the installation here
https://help.ubuntu.ru/wiki/tor

I'm trying to change it here
$this->tor_change_proxy()

protected function tor_change_proxy(){
        $fp=fsockopen('127.0.0.1','9051',$error_number,$err_string,10);
        if(!$fp){
            $received = "240 Error while changing Tor proxy identity: {".$error_number."} : {".$err_string."}<br />";
        }else{
//            dd(4567);
            fwrite($fp,"AUTHENTICATE\n" );
            $received=fread($fp,512);
            fwrite($fp,"signal NEWNYM\n" );
            $received=fread($fp,512);
        }
        fclose($fp);
        $tor = explode(' ',$received);
        return $tor[0];
    }


Maybe I'm doing something like this...???

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question