[php]
<?php
/*
* Name: PROXYgetter
* Author: Xt3mP
* Contact: xt3mp[at]null[dot]net
* Bugs: xt3mp[at]null[dot]net
* Personal website: http://xt3mp.mx
* Website: http://backroot.org
* Version: 1.0 BETA
*/
ob_implicit_flush();
set_time_limit(0);
?>
<!DOCTYPE html>
<html>
<head>
<title>PROXYgetter v1.0 [Xt3mP]</title>
<style type="text/css">body{background-color:#000;color:#FFF;font-family:"Courier New";font-size:14px}div#container{background-color:#151515;border:1px dashed #FFF;margin:0 auto;padding:5px;text-align:center;width:800px}input{font-family:"Courier New";text-align:center}h1{border-bottom:1px dashed #FFF;border-top:1px dashed #FFF;margin:0 0 5px;padding:0}p{border-top:1px dashed #FFF;margin:5px 0 0;padding:0}a{color:lime;text-decoration:none}a:hover{color:#FFF}.result{border-top:1px dashed #FFF}</style>
</head>
<body>
<div id="container">
<pre>
______ ______ _______ ___ ___ ___ ___ __ __PROXYgetter v1.0
| __ \| __ \| || | || | |.—–..—–.| |_ | |_ .—–..—-.
| __/| <| – ||- -| \ / | _ || -__|| _|| _|| -__|| _|
|___| |___|__||_______||___|___| |___| |___ ||_____||____||____||_____||__|
|_____| Powered By Xt3mP
xt3mp[at]null[dot]net
</pre>
<h1>Free proxys for you</h1>
<form action="" method="POST">
For each page, the script tries to verify the connection of 50 proxys.<br />
Max. pages (1-5): <input type="text" name="pages" value="5" size="1" maxlength="1"> –
Timeout: <input type="text" name="timeout" value="1" size="1" maxlength="1"><br />
Show all results: <select name="show"><option value="no">No</option><option value="yes">Yes</option></select><br />
Stop processing if there’s <input type="text" name="stop" value="0" size="2" maxlength="2"> positive matches<br />
<font color="red">[0: All]</font><br />
<input type="submit" name="get" value="Give me proxys for free!">
</form>
<?php
if(isset($_POST[‚get‘]))
{
echo ‚<div class="result">‘;
$proxyList = array();
$pages = (!is_numeric($_POST[‚pages‘]) or $_POST[‚pages‘] < 1 or $_POST[‚pages‘] > 5) ? 5 : abs($_POST[‚pages‘]);
$timeOut = (!is_numeric($_POST[‚timeout‘])) ? 5 : abs($_POST[‚timeout‘]);
$show = ($_POST[’show‘] != ’no‘ && $_POST[’show‘] != ‚yes‘) ? ‚yes‘ : $_POST[’show‘];
$stop = ($_POST[’stop‘] == 0 or !is_numeric($_POST[’stop‘]) or $_POST[’stop‘] > 50) ? ‚all‘ : abs($_POST[’stop‘]);
$counter = 0;
$quit = false;
#This section of the code
#is for proxys.com.ar
for($i = 0; $i <= $pages; $i++)
{
if($quit)
{
break;
}else{
$web = ($i == 0) ? ‚http://www.proxys.com.ar/‘ : ‚http://www.proxys.com.ar/index.php?act=list&port=&type=&country=&page=‘.$i;
$webContent = @file_get_contents($web);
$_pattern1 = "/<tr class=\"cells\" onmouseover=\"this\.className=’cells2’\" onmouseout=\"this\.className=’cells’\">(.*?)<\/tr>/is";
$pregMatch = @preg_match_all($_pattern1, $webContent, $proxyData, PREG_SET_ORDER);
for($x = 0; $x<count($proxyData); $x++)
{
$_pattern2 = "/<td>(.*)<\/td>/i";
$pregMatch = @preg_match_all($_pattern2, $proxyData[$x][1], $proxyConnect, PREG_SET_ORDER);
$proxyIp = $proxyConnect[0][1];
$proxyPort = $proxyConnect[1][1];
$proxyCountry = $proxyConnect[3][1];
$proxyTarget = $proxyIp.‘:‘.$proxyPort;
$fp = @fsockopen($proxyIp, $proxyPort, $errno, $errstr, $timeOut);
if($fp)
{
if(!in_array($proxyTarget, $proxyList))
{
$counter++;
array_push($proxyList, $proxyTarget);
echo ‚<font color="lime">‘.$proxyTarget.‘ > ‚.$proxyCountry.'</font><br />‘;
if($counter == $stop)
{
$quit = true;
break;
}
}
}elseif(!$fp && $show == ‚yes‘){
echo ‚<font color="red">‘.$proxyTarget.‘ > ‚.$proxyCountry.'</font><br />‘;
}
}
}
}
#This section of the code
#is for xroxy.com
if(!$quit)
{
$latency = $timeOut * 1000;
$web = ‚http://www.xroxy.com/proxylist.php?port=&type=&ssl=&country=&latency=‘.$latency.’&reliability=#table‘;
$webContent = @file_get_contents($web);
$_pattern1 = "/<tr class=’row[(1|0){1}]‘>(.*?)<\/tr>/is";
$pregMatch = @preg_match_all($_pattern1, $webContent, $proxyData, PREG_SET_ORDER);
for($i=0; $i<count($proxyData); $i++)
{
$_pattern2 = "/<td[( nowrap=’nowrap‘>|>)?](.*?)<\/td>/s";
$pregMatch = @preg_match_all($_pattern2, $proxyData[$i][1], $proxyConnect, PREG_SET_ORDER);
$proxyIp = @preg_replace("/\s/", “, $proxyConnect[1][1]);
$proxyPort = $proxyConnect[2][1];
$proxyCountry = str_replace("nowrap=’nowrap‘>", "", $proxyConnect[5][1]);
$proxyTarget = $proxyIp.‘:‘.$proxyPort;
echo ‚<font color="lime">‘.$proxyTarget.‘ > ‚.$proxyCountry.'</font><br />‘;
}
}
//echo count($proxyList).‘ matches.‘;
echo ‚</div>‘;
}
?>
<p>Coded by <a href="http://xt3mp.mx">Xt3mP</a> for <a href="http://backroot.org">backroot.org</a></p>
</div>
</body>
</html>
[/php]