cron.php 302 B

123456789
  1. <?php
  2. $port=rand(50000, 60000);
  3. $str=file_get_contents("./proxy.pac");
  4. $pat="/proxy\.97admin\.com:\d+/";
  5. $new_str=preg_replace($pat, "proxy.97admin.com:".$port, $str);
  6. // $new_str=str_replace("", "", $str);
  7. file_put_contents("./proxy.pac", $new_str);
  8. file_put_contents("./proxy.txt",$port);
  9. echo $port;