Advertisement
krot

tor multiple

Apr 17th, 2017
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. if(empty(exec("netstat -l |grep ':{$p[0]}'"))){
  2.     system("mkdir '/var/lib/torx/tor{$i}'");
  3.     system("chmod 2700 '/var/lib/torx/tor{$i}'");
  4.     system("tor --RunAsDaemon 1 --CookieAuthentication 0 --HashedControlPassword '16:7kC' --ControlPort {$p[1]} --PidFile tor{$i}.pid --SocksPort {$p[0]} --DataDirectory /var/lib/torx/tor{$i}").PHP_EOL;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement