Answer the question
In order to leave comments, you need to log in
Why doesn't the TOR proxy change?
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];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question