Jump to content
iulik

Proxy list(generator) php

Recommended Posts

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:3128

24.172.34.114:8181

72.29.101.11:8089

60.161.14.77:8001

61.178.178.159:9999

118.97.136.250:8080

88.198.57.212:443

23.81.65.84:1080

202.79.52.53:3128

46.29.78.62:3128

116.228.55.217:8003

118.97.130.10:80

218.108.192.205:843

85.135.107.213:3128

117.36.231.239:9999

218.108.170.172:80

217.169.222.102:80

85.185.42.6:8080

190.0.46.66:8080

190.102.30.19:80

178.48.2.237:8080

202.162.36.46:80

182.52.235.16:8080

213.110.195.249:8080

114.32.114.10:8080

61.156.235.170:9999

178.20.41.88:8080

41.222.196.52:8080

80.93.49.145:2214

190.189.93.245:8080

202.43.188.12:8080

117.59.224.58:80

212.144.254.123:3128

221.204.246.189:8080

194.213.60.222:8080

95.38.32.66:8080

173.65.42.235:46544

118.98.75.50:3128

94.154.31.33:8090

190.220.158.30:8080

180.169.125.49:8888

195.66.157.230:8080

218.108.170.171:82

189.115.24.45:3128

182.253.32.96:8080

77.50.220.92:8080

182.253.48.4:8080

118.85.208.136:80

61.174.9.96:8080

46.22.173.86:3128

source: Proxy List(Generator)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...