Answer the question
In order to leave comments, you need to log in
How to force using php to change intermediate tor-y nodes in windows?
Hello, you need to force Tor to change the ip-shnik in a windows system using php.
found similar manuals
phpforum.su/index.php?showtopic=83831
habrahabr.ru/sandbox/38998
downloaded the tor browser (as I understand it, and tor goes with it)
looked that, unlike the tutorial, tor listens to ports not 9050 and 9051, but 9150 and 9151
to connect using Tor as a socket proxy, it worked out for me, but unfortunately there is no way to force me to change the ip-shnik. Can anyone come across and know the solution?
function tor_new_identity($tor_ip='127.0.0.1', $control_port='9051', $auth_code=''){
$fp = fsockopen($tor_ip, $control_port, $errno, $errstr, 30);
if (!$fp) return false; // не можем законнектицца на порт управления
fputs($fp, "AUTHENTICATE $auth_code\r\n");
$response = fread($fp, 1024);
list($code, $text) = explode(' ', $response, 2);
if ($code != '250') return false;
// шлём запрос на смену звена
fputs($fp, "signal NEWNYM\r\n");
$response = fread($fp, 1024);
list($code, $text) = explode(' ', $response, 2);
if ($code != '250') return false;
fclose($fp);
return true;
}
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