Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.8.2
  8. * @ Author : DeZender
  9. * @ Release on : 02.01.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function CheckMultiProxy($proxies, $timeout, $proxy_type)
  15. {
  16. $data = [];
  17.  
  18. foreach ($proxies as $proxy) {
  19. $parts = explode(':', trim($proxy));
  20. $url = strtok(curPageURL(), '?');
  21. $data[] = $url . '?ip=' . $parts[0] . '&port=' . $parts[1] . '&timeout=' . $timeout . '&proxy_type=' . $proxy_type;
  22. }
  23.  
  24. $results = multiRequest($data);
  25. $holder = [];
  26.  
  27. foreach ($results as $result) {
  28. $holder[] = json_decode($result, true)['result'];
  29. }
  30.  
  31. $arr = ['results' => $holder];
  32. echo json_encode($arr);
  33. }
  34.  
  35. function CheckSingleProxy($ip, $port, $timeout, $echoResults = true, $socksOnly = false, $proxy_type = 'http(s)')
  36. {
  37. $passByIPPort = $ip . ':' . $port;
  38. $url = 'http://whatismyipaddress.com/';
  39. $loadingtime = microtime(true);
  40. $theHeader = curl_init($url);
  41. curl_setopt($theHeader, CURLOPT_RETURNTRANSFER, 1);
  42. curl_setopt($theHeader, CURLOPT_TIMEOUT, $timeout);
  43. curl_setopt($theHeader, CURLOPT_PROXY, $passByIPPort);
  44.  
  45. if ($socksOnly) {
  46. curl_setopt($theHeader, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  47. }
  48.  
  49. curl_setopt($theHeader, CURLOPT_SSL_VERIFYHOST, 0);
  50. curl_setopt($theHeader, CURLOPT_SSL_VERIFYPEER, 0);
  51. $curlResponse = curl_exec($theHeader);
  52.  
  53. if ($curlResponse === false) {
  54. ......................................................................
  55. ......................................
  56. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement