Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.2
- * @ Author : DeZender
- * @ Release on : 02.01.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function CheckMultiProxy($proxies, $timeout, $proxy_type)
- {
- $data = [];
- foreach ($proxies as $proxy) {
- $parts = explode(':', trim($proxy));
- $url = strtok(curPageURL(), '?');
- $data[] = $url . '?ip=' . $parts[0] . '&port=' . $parts[1] . '&timeout=' . $timeout . '&proxy_type=' . $proxy_type;
- }
- $results = multiRequest($data);
- $holder = [];
- foreach ($results as $result) {
- $holder[] = json_decode($result, true)['result'];
- }
- $arr = ['results' => $holder];
- echo json_encode($arr);
- }
- function CheckSingleProxy($ip, $port, $timeout, $echoResults = true, $socksOnly = false, $proxy_type = 'http(s)')
- {
- $passByIPPort = $ip . ':' . $port;
- $url = 'http://whatismyipaddress.com/';
- $loadingtime = microtime(true);
- $theHeader = curl_init($url);
- curl_setopt($theHeader, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($theHeader, CURLOPT_TIMEOUT, $timeout);
- curl_setopt($theHeader, CURLOPT_PROXY, $passByIPPort);
- if ($socksOnly) {
- curl_setopt($theHeader, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- }
- curl_setopt($theHeader, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($theHeader, CURLOPT_SSL_VERIFYPEER, 0);
- $curlResponse = curl_exec($theHeader);
- if ($curlResponse === false) {
- ......................................................................
- ......................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement