Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <?php
  2. $curl = curl_init();
  3. $timeout = 3000;
  4. $proxies = file("proxy.txt");
  5. $r="https://abcdefgh.com";
  6. // Not more than 2 at a time
  7. for($x=0;$x<25; $x++){
  8. //setting time limit to zero will ensure the script doesn't get timed out
  9. set_time_limit(0);
  10.  
  11. //now we will separate proxy address from the port
  12. //$PROXY_URL=$proxies[$getrand[$x]];
  13. echo $proxies[$x];
  14. curl_setopt($curl, CURLOPT_URL,$r);
  15. curl_setopt($curl , CURLOPT_PROXY , $proxies[$x]);
  16. curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5");
  17. curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
  18. curl_setopt($curl, CURLOPT_REFERER, "http://google.com/");
  19. $text = curl_exec($curl);
  20.  
  21. echo "Hit Generated:";
  22. echo $x;
  23.  
  24. }
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement