Hm...,<br>Why no one answers?<br>Did I said something wrong?<br><br><br><b><i>"Mr. Blue" &lt;trashdsfg@yahoo.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hey Crew.<br><br>Thanks to all for your help.<br><br>First for all I would like to say that this file.php(which is manipulating Tor) will be located in admin area ONLY and will be intended for use ONLY by admin.<br>Admin area is protected by Apache pass authentication (Digest) over SSL and after that is passed, admin must enter another login password to enter admin area.<br><br>Only admin will use it - NOT publicly available to users!<br><br>Next....<br>Firstly I need to issue to shell, from PHP, command that will start Tor.<br>Regarding that command...<br>It will have ALL directives that should "normally" be located in torrc, but there is no torrc, nor I have intention to use it.<br>So command
 is:<br>--------------------------<br>tor -gid $gid -pidfile $pidfile -RunAsDaemon $b -user $uid -ClientOnly 1 -EntryNodes<b> </b><i>$nickname, </i>-ExitNodes<b> </b><i>$nickname -</i>StrictExitNodes 1<b> -</b>NewCircuitPeriod<b> </b>3600 -<br>--------------------------<br>Regarding  nodes....<br>Entry and exit nodes will be same.<br><br>Before I continue I would like to say that I have made a PHP script that is utilizing regular expresions and harvesting all exit nodes in a list of IP addresses from moria dirs.<br>So I would like to pull from my database IP of a node(NOT nickname) and put it in a <i>$nickname </i>variable<i>.<br></i>Will this work? Can I select node by IP and NOT by nickname?<br><br>Also when that will be achived I am going to use PHP cURL and connect with it to 127.0.0.1:9050 using SOCKS<span style="font-weight: bold;">5 </span>protocol - then do request to some page on the internet and finaly use POSIX - posix_kill($pidfile, SIGTERM); php function to
 shutdown Tor, alternatively use kill to which I pass $pidfile, all in shell.<br><br>Now someone will say that I should connect to Tor using SOCKS<span style="font-weight: bold;">4a </span>and am I normall to use ONLY 1 node which will be entry and exit at the same time.<br>Be sure that  I am VERY aware of my actions - but I am not here because I don't wana be tracked and because I want to surf anonimously.<br><br>Now here we come to the bigest obstacle for me.(oh men, soon as I finish this script I am going to read FreeBSD book that I just got and learn that UNIX at once!)<br>Creating a valid shell command:<br>--------------------------<br> tor -gid $gid -pidfile $pidfile -RunAsDaemon $b -user $uid -ClientOnly 1 -EntryNodes<b> </b><i>$nickname, </i>-ExitNodes<b> </b><i>$nickname -</i>StrictExitNodes 1<b> -</b>NewCircuitPeriod<b> </b>3600 -<br> --------------------------<br>User nobody will run it.<br>&nbsp;- Should I exlude "-gid $gid" part?<br>&nbsp;- Should $b variable
 be 0 OR 1 (that is..., should I run it as deamon?)<br>&nbsp;- Should I exlude "-user $uid" part?<br>&nbsp;- What about <i>$nickname</i>? Can I pass it IP of a node?<br>&nbsp;- What should I put in a $pidfile variable?!? - I never saw one (number or letters?) It will also be used for  shuting down Tor at the end of a process...<br><br>Also I just rememberd something...<br>Whan tor was already runnig(started by root) I was able to utilize connection trough it by nobody, but when I attempted shutdown I got message that there was no process with pid belonging to it - or something similar - so that explains all.<br><br>Thank in advance...</blockquote><br><p>&#32;

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.