iulik Posted November 24, 2013 Report Share Posted November 24, 2013 Acest script listeaza proxy-uri sub forma ip: proxy depe hidemyass <?php $act = (isset($_GET['act']) && $_GET['act'] == "check") ? "check" : "none"; function checkSpan($input){ // Save style classes $match_exc_style = preg_replace("/.*([<]style\s*?[>])|([<]\W+style\s*?[>]).*/","", $input); $match_exc = preg_replace("/\s+/","", $match_exc_style); $match_exc = explode(".", $match_exc, 2); $match_exc = $match_exc[1]; $newSplit = explode(".", $match_exc); $arrClass = array(); foreach($newSplit as $class) { $class_exc = preg_replace("/{.*?}/","", $class); $class_val = preg_replace("/.*?{(.*?)}/","$1", $class); $arrClass[$class_exc] = $class_val; } //continue triming $match = str_replace($match_exc_style,"", $input); $match = preg_replace("/\s*[<]style[>]\s*?[<]\W+style\s*?[>]\s*/","", $match); $match = preg_replace("/[<]div\s+style\s*?\W+display\s*?\W\s*?none\s*?\W+?[>].*?[<].*?[>]/", "",$match); $match = preg_replace("/[<]span\s+style\s*?\W+display\s*?\W\s*?none\s*?\W+?[>].*?[<].*?[>]/", "",$match); $match = preg_replace("/[<]img.*?[>]/", "", $match); $match = preg_replace("/([<]span\s+class\s*?\W+\s*?country\s*?\W+?[>]\s+)(.*?)([<].*?[>])/", "$2",$match); $match = preg_replace("/([<]span\s+class\s*?\W+\s*?[0-9]+\s*?\W+?[>])(.*?)([<].*?[>])/", "$2",$match); $match = preg_replace("/([<]span\s+style\s*?\W+display\s*?\W\s*?inline\s*?\W+?[>])(.*?)([<].*?[>])/", "$2",$match); foreach($arrClass as $key => $class) { if($class == "display:none") $match=preg_replace("/([<]span\s+class\s*?\W+\s*?".$key."\s*?\W+?[>])(.*?)([<].*?[>])/","",$match); if($class == "display:inline") $match=preg_replace("/([<]span\s+class\s*?\W+\s*?".$key."\s*?\W+?[>])(.*?)([<].*?[>])/","$2",$match); } $match = preg_replace("/[<]span\s*?[>]\s*?[<]\W+.*?[>]/", "", $match); $match = preg_replace("/([<]span\s*?[>])(.*?)([<].*?[>])/", "$2",$match); return $match ; } function getContents() { $response = ""; $mama = file_get_contents("http://hidemyass.com/proxy-list/"); $mama = preg_replace("/(.*)?[<]\W+thead\s*?[>]/", "", $mama); $mama = preg_replace("/[<]thead\s*?[>]\s*/", "|+|+|+|", $mama); $mama = explode("|+|+|+|",$mama); $mama = $mama[1]; $mama = preg_replace("/\s*[<]\W+table\s*?[>]\s*/", "|+|+|+|", $mama); $mama = explode("|+|+|+|",$mama); $mama = $mama[0]; $mama = preg_replace("/\s*[<]\W+?tr\s*?[>]\s*?[<]tr.*?[>]\s*/","|+|+|+|", $mama); $mama = preg_replace("/\s*[<]\W+?tr\s*?[>]s*|s*[<]tr.*?[>]\s*/","", $mama); $mama = explode("|+|+|+|",$mama,2); $mama = $mama[1]; $newSplit = explode("|+|+|+|", $mama); $response .='<table style="border: 1px solid;" cellpadding=3 align=center WIDTH=60%> <tr align="center" style="border: 1px solid;" > <td style="border: 1px solid;">IP : Port</td> </tr>'; foreach($newSplit as $line) { $line = preg_replace("/\s*[<]\W+?td\s*?[>]\s*?[<]td.*?[>]\s*/","|+|+|+|", $line); $newSplit = explode("|+|+|+|",$line); $line = $newSplit[1]."|".$newSplit[2]."|".$newSplit[3]; $arrayView = checkSpan($line); $newline = explode("|",$arrayView,3); $response .='<tr align="center" style="border: 1px solid;" >'; $response .= "<td style='border: 1px solid;'><center>".$newline[0].":".$newline[1].""; //$response .= "<td style='border: 1px solid;'><center>".$newline[1]."</td>"; // //$response .= "<td style='border: 1px solid;'><center>".$newline[2]."</td></tr>"; // } $response .= "</table>"; return $response; } switch($act) { case "check": { echo getContents(); }break; default: { echo '<title>Proxy List @Crisalixx</title> <link rel="stylesheet" type=text/css href=./css/style.css /> <div align=center><img src=http://s23.postimg.org/5lmp7adbv/Untitled_1.png></img></div><center> <script type="text/JavaScript"> function xhr() { var xhr; if(window.XMLHttpRequest) { xhr = new XMLHttpRequest(); }else { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } xhr.onreadystatechange = function() { if(xhr.readyState == 4 && xhr.status == 200) { document.getElementById("table").innerHTML = xhr.responseText;} } xhr.open("GET", "?act=check", false); xhr.send(null); } function timedRefresh() { xhr(); setTimeout(function(){timedRefresh();}, 10000); } </script> <body onload="timedRefresh();"><div id="table"></div></body>'; } } ?>ex output (generat recent):110.136.189.101:312824.172.34.114:818172.29.101.11:808960.161.14.77:800161.178.178.159:9999118.97.136.250:808088.198.57.212:44323.81.65.84:1080202.79.52.53:312846.29.78.62:3128116.228.55.217:8003118.97.130.10:80218.108.192.205:84385.135.107.213:3128117.36.231.239:9999218.108.170.172:80217.169.222.102:8085.185.42.6:8080190.0.46.66:8080190.102.30.19:80178.48.2.237:8080202.162.36.46:80182.52.235.16:8080213.110.195.249:8080114.32.114.10:808061.156.235.170:9999178.20.41.88:808041.222.196.52:808080.93.49.145:2214190.189.93.245:8080202.43.188.12:8080117.59.224.58:80212.144.254.123:3128221.204.246.189:8080194.213.60.222:808095.38.32.66:8080173.65.42.235:46544118.98.75.50:312894.154.31.33:8090190.220.158.30:8080180.169.125.49:8888195.66.157.230:8080218.108.170.171:82189.115.24.45:3128182.253.32.96:808077.50.220.92:8080182.253.48.4:8080118.85.208.136:8061.174.9.96:808046.22.173.86:3128source: Proxy List(Generator) Quote Link to comment Share on other sites More sharing options...