Advertisement
bug7sec

Mass Checker SOCKS5

Aug 21st, 2016
2,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. set_time_limit();
  4. /**
  5. * Code Name     : Mass Checker SOCKS5
  6. * Release       : 1.0.1 build 210816
  7. * Author        : SHOR7CUT (http://facebook.com/bug7sec)
  8. * Team          : BUG7SEC | INDOXPLOIT CODERS TEAM | TUBAN CYBER TEAM | DEFACER TERSAKITI TEAM
  9. *
  10. * PHP Version   : 5.5.35
  11. */
  12. $fgt = file_get_contents("proxy.txt");
  13. $type = array(
  14.     'CURLPROXY_SOCKS5'
  15. );
  16. $pro = explode("\r\n", $fgt);
  17. foreach ($pro as $key => $proxy) {
  18.         foreach ($type as $kexxy => $tipe) {
  19.             $cURL = curl_init();
  20.             curl_setopt($cURL, CURLOPT_URL, "http://ip-api.com/json");
  21.             curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
  22.             curl_setopt($cURL, CURLOPT_CONNECTTIMEOUT ,0);
  23.             curl_setopt($cURL, CURLOPT_TIMEOUT, 10); //timeout in second
  24.             curl_setopt($cURL, CURLOPT_PROXYTYPE, $tipe);
  25.             curl_setopt($cURL, CURLOPT_PROXY, $proxy);
  26.             $data = json_decode(curl_exec($cURL),true);
  27.             if( $data['status'] ){
  28.                 echo $proxy."\r\n";
  29.             }
  30.         }
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement