Advertisement
choirurrizal

Simple Bot Auto Views with Proxy

Feb 10th, 2018 (edited)
1,249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.18 KB | None | 0 0
  1. <?php
  2. echo "
  3.  ___  _  _  __  _  _  __  _  _   __   _  _     _    _  ____  ___
  4. / __)( )( )(  )( \( )/ _)( )( ) (  ) ( \( )   ( \/\/ )(_  _)(  _)
  5. \__ \ )__(  )(  )  (( (_  )__(  /__\  )  (  ___\    /   )(   ) _)
  6. (___/(_)(_)(__)(_)\_)\__)(_)(_)(_)(_)(_)\_)(___)\/\/   (__) (_)  
  7.      Simple Bot Auto Views with Proxy - coded by ShinChan
  8.  
  9. ";
  10. echo "Input your proxy list: ";
  11. $list = trim(fgets(STDIN));
  12.  
  13. $open = fopen("$list","r");
  14. $size = filesize("$list");
  15. $read = fread($open,$size);
  16. $lists = explode("\r\n",$read);
  17.  
  18. $s = 0;
  19. $f = 0;
  20. $t = 0;
  21.  
  22. echo "\n";
  23.  
  24. foreach($lists as $proxy){
  25.  
  26.     echo "Checking $proxy => ";
  27.    
  28.     $chi = curl_init();
  29.     curl_setopt($chi, CURLOPT_URL, "http://blog.n45ht.web.id");
  30.     curl_setopt($chi, CURLOPT_PROXY, $proxy);
  31.     curl_setopt($chi, CURLOPT_HTTPPROXYTUNNEL, true);
  32.     curl_setopt($chi, CURLOPT_RETURNTRANSFER, 1);
  33.     curl_setopt($chi, CURLOPT_FOLLOWLOCATION, 1);
  34.     curl_setopt($chi, CURLOPT_HEADER, 1);
  35.     curl_setopt($chi, CURLOPT_TIMEOUT, '10');
  36.     $ie = curl_exec($chi);
  37.     curl_close($chi);
  38.     if(!$ie){
  39.         echo "PROXY ERROR\n";
  40.         $f = $f+1;
  41.     }else{
  42.         echo "OK\n";
  43.         $s = $s+1;
  44.     }
  45. }
  46. $t = $s+$f;
  47. echo "\nSuccess : $s; Failed : $f; Total : $t;\n";
  48. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement