nexgen
Гуру форума
- Регистрация
- 26 Июл 2006
- Сообщения
- 145
- Реакции
- 54
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<?php // Open Source Proxy Checker, severely stripped down
error_reporting(0); // no error reporting
if(isset($PATH_INFO)&&($PATH_INFO=='/feedback.txt')) { // asked to behave like a mirror?
Header('Content-Type: text/plain');
$headers=getallheaders();
reset($headers);
while(list($header,$value)=each($headers)) print("$header === $value\n");
} else { // testing the proxy
$SockAdr='proxy.spaceproxy.com';
$SockPort=80;
$HL=array(
'User-Agent' => 'Mozilla/4.0 (Windows 98;US) Opera 3.62 [en]',
'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/png, */*',
'Pragma' => 'no-cache',
'Connection' => 'keep-alive');
print('<html><body><h1>Stripped down version of OSPC</h1>');
printf('Sending request to proxy %s, port %s<br><pre>',$SockAdr,$SockPort);
print(" GET http://$HTTP_HOST$SCRIPT_NAME/feedback.txt HTTP/1.1\n");
print(" Host: $HTTP_HOST:80\n");
reset($HL);
while(list($header,$value)=each($HL)) print(" $header: $value\n");
printf("</pre>Connecting to %s, port %s...<br>",$SockAdr,$SockPort);
flush(); // force flushing of "printf" buffers.
$fp=fsockopen($SockAdr,$SockPort);
if($fp) { // you are reading this code? Wow, I'm proud of you!
// start outputting our header
fputs($fp,"GET http://$HTTP_HOST$SCRIPT_NAME/feedback.txt HTTP/1.1\r\n");
fputs($fp,"Host: $HTTP_HOST:80\r\n");
reset($HL);
while(list($header,$value)=each($HL)) fputs($fp,"$header: $value\r\n");
fputs($fp,"\r\n"); // terminate header structure by appending a blank line
while(!feof($fp)) {
$line=fgets($fp,4096); // I suppose no line will be longer than this
if($line=="\r\n") break; // reached end of header
} // end while
if(!feof($fp)) {
print('<br>Receiving...<pre>');
while(!feof($fp)) {
$line=trim(fgets($fp,4096));
list($name,$value)=split(' === ',$line,2);
if((strlen($name)>0)&&(strlen($value)>0)) print(" $name: $value\n");
} // end while() (end of "file" reached)
print("</pre>That's all!");
} // end if
fclose($fp);
} // end if: end processing with a valid socket handle ($fp)
print('</body></html>');
} // end else: testing proxy
?>
<?php
# Иногда возникает необходимость определить в пхп скрипте, что за прокси использует пользователь, для блокировки нежелательных пользователей, использующих анонимные прокси. Представленный ниже код и позволяет это сделать. Единственное замечание - требуется библиотека пхп, работающая с удаленными хостами (curl).
// phpcheckah - php check anonymous host by Paolo Ardoino [ paolo.ardoino@gmail.com ]
// function arguments:
// $ah is an array of triples (ip,port,type):
// ip: ip address of the socks/proxy
// port: port of the socks/proxy
// type: s5(for socks5), s4(fyor socks4),
// p(for proxy)
// $url is the url to check using socks/proxy; this function
// tries to download the source of this url
// $needle is the string to find in the $url source, so
// if the string is found the socks/proxy works.
// Example:
// $ah = array(array("ip"=>"192.168.0.2","port"=>"9050","type"=>"s5"),
// array("ip"=>"192.168.0.3","port"=>"9050","type"=>"s5"));
// curlCheckAnonHosts($ah, "http://www.google.it", "groups.google");
function curlCheckAnonHosts($ah, $url, $needle) {
$html = "";
for($i = 0; $i < sizeof($ah); $i++) {
echo "Checking Anonymous host ".$ah[$i]["ip"].":".$ah[$i]["port"]."n";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $GLOBALS["agent"]);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
if($referer != "")
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_PROXY, $ah[$i]["ip"].":".$ah["port"]);
if($ah["type"] == "s4")
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
else if($ah["type"] == "s5")
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
$html = curl_exec($ch);
if(curl_errno($ch) || $html == "" || strpos($html, $needle) === false) {
echo "Not workingn";
} else {
echo "Found working Anonymous Host type ".$ah[$i]["type"]." [ ".$ah[$i]["ip"].":".$ah[$i]["port"]." ]n";
}
curl_close ($ch);
unset($ch);
}
}
?>
<?
/************************************************** **************
* *
* *
* This will perform a basic connectivity and anonymity test *
* *
* Simply upload to a php enabled webserver and change the *
* configurable parameters below if you so desire *
* *
* 2005-11-11 v0.1 - Compatible with Charon v0.5.3.5 *
************************************************** **************/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>Online proxy tester</title></head>
<body bgcolor="black" text="white">
<?php
// Ensure that the timeouts from fsockopen don't get reported as errors (possible, depends on the php server config)
error_reporting(0);
// Limit the amount of proxies that can be tested at any one time
$maximum_proxies_to_test = 5;
// Enter a password (if required) to protect the page
$password = '';
// Actual proxyjudge part of the page
function return_env_variables()
{
echo '<pre>'."\n";
foreach ($_SERVER as $header => $value )
{
if ((strpos($header , 'REMOTE')!== false || strpos($header , 'HTTP')!== false || strpos($header , 'REQUEST')!== false) && ( strpos($header , 'HTTP_HOST') !== 0))
{
echo $header.' = '.$value."\n";
}
}
echo '</pre>';
}
// Function to go away and get the page (calls through the proxy back to itself)
function get_judge_page($proxy)
{
// Depending on the server environment, this timeout setting may not be available.
$timeout = 15;
$proxy_cont = '';
list($proxy_host, $proxy_port) = explode(":", $proxy);
$proxy_fp = fsockopen($proxy_host, $proxy_port, $errornumber, $errorstring, $timeout);
if ($proxy_fp)
{
stream_set_timeout($proxy_fp, $timeout);
fputs($proxy_fp, "GET " . $_SERVER['SCRIPT_NAME'] . "?test HTTP/1.0\r\nHost: " . $_SERVER['SERVER_NAME'] . "\r\n\r\n");
while(!feof($proxy_fp))
{
$proxy_cont .= fread($proxy_fp,4096);
}
fclose($proxy_fp);
$proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")+4);
}
return $proxy_cont;
}
// Check for the control string to see if it's a valid fetch of the judge
function check_valid_judge_response($page)
{
if(strlen($page) < 5)
return false;
return strpos($page, 'REMOTE_ADDR') !== false;
}
// Check for the IP addresses
function check_anonymity($page)
{
if(strpos($page, $_SERVER['LOCAL_ADDR']) !== false)
return false;
return true;
}
// Takes and tests a proxy
// 0 - Bad proxy
// 1 - Good (non anon) proxy
// 2 - Good (anonymous) proxy
function test_proxy($proxy)
{
$page = get_judge_page($proxy);
if(!check_valid_judge_response($page))
return 0;
if(!check_anonymity($page))
return 1;
return 2;
}
////////// Main Page ////////////
// If this is a judge request, just return the environmental variables
if(getenv('QUERY_STRING') == "test")
{
return_env_variables();
}
// Else check whether we have been passed a list of proxies to test or not
// Should really use $_POST but it's been left as $HTTP_POST_VARS for older versions of php (3.x)
elseif( (isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'fred') &&
(isset($HTTP_POST_VARS['proxies']) && $HTTP_POST_VARS['proxies'] != '') &&
( (strlen($password) == 0) || (isset($HTTP_POST_VARS['password']) && $HTTP_POST_VARS['password'] === $password) ))
{
$proxies = explode("\n", str_replace("\r", "", $HTTP_POST_VARS['proxies']), $maximum_proxies_to_test + 1);
// Set the overall time limit for the page execution to 10 mins
set_time_limit(600);
// Set up some arrays to hold the results
$anon_proxies = array();
$nonanon_proxies = array();
$bad_proxies = array();
// Loop through and test the proxies
for($thisproxy = 0; $thisproxy < ($maximum_proxies_to_test > count($proxies) ? count($proxies) : $maximum_proxies_to_test); $thisproxy += 1)
{
echo 'Testing ' . $proxies[$thisproxy] . ' .....';
flush();
switch(test_proxy($proxies[$thisproxy]))
{
case 2:
echo '.. Anon<br>' . "\n";
$anon_proxies[count($anon_proxies)] = $proxies[$thisproxy];
break;
case 1:
echo '.. Non anon<br>' . "\n";
$nonanon_proxies[count($nonanon_proxies)] = $proxies[$thisproxy];
break;
case 0:
echo '.. Dead<br>' . "\n";
$bad_proxies[count($bad_proxies)] = $proxies[$thisproxy];
break;
}
}
echo '<pre>';
echo '<br><b>Anonymous proxies</b>' . "\n";
for($thisproxy = 0; $thisproxy < count($anon_proxies); $thisproxy += 1)
echo $anon_proxies[$thisproxy] . "\n";
echo '<br><b>Non-anonymous proxies</b>' . "\n";
for($thisproxy = 0; $thisproxy < count($nonanon_proxies); $thisproxy += 1)
echo $nonanon_proxies[$thisproxy] . "\n";
echo '<br><b>Dead proxies</b>' . "\n";
for($thisproxy = 0; $thisproxy < count($bad_proxies); $thisproxy += 1)
echo $bad_proxies[$thisproxy] . "\n";
echo '</pre>';
}
// Just a blank call of the page - show the form for the user to fill in
else
{
echo '<h2>Online Proxy checker</h2>' . "\n";
echo '<h4>([url]http://'[/url] . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] . ')</h4>' . "\n";
echo 'Enter up to a maximum of ' . $maximum_proxies_to_test . ' prox' . ($maximum_proxies_to_test == 1 ? 'y' : 'ies') . ' to test' . "\n";
echo '<form method="POST" action="' . $_SERVER['SCRIPT_NAME'] . '">' . "\n";
echo '<input type="hidden" name="action" value="fred">' . "\n";
echo '<textarea name="proxies" cols=35 rows=' . $maximum_proxies_to_test . '></textarea><br>' . "\n";
if(strlen($password) > 0)
echo 'Password: <input type="password" name="password" size="15"><br>' . "\n";
echo '<input type="submit" value="Check proxies">' . "\n";
echo '</form>' . "\n";
}
?>
</body>
</html>
<?php
error_reporting(0);
//non riportare errori
ini_set("max_execution_time",0);
//alza il tempo di timeout
ob_implicit_flush (1);
echo '
<html>
<head>
<title>rgod php scan - free online PHP scanner</title>
<meta name="keywords" content="scanner, rgod, php scan, php scanner, free online scanner">
<meta name="description" content="free online scanner, features: TCP/UDP scan, NetBios, SMNP, IIS / Apache / CGI queries">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body { background-image: url(image009.jpg);
background-color: #303030 ;
scrollbar-face-color: #222222;
scrollbar-highlight-color: #909090;
scrollbar-shadow-color: #999999;
scrollbar-3dlight-color: #BBBBBB;
scrollbar-arrow-color: #07EB41;
scrollbar-track-color: #AAAAAA;
scrollbar-darkshadow-color: #606060;
body {font-family: Verdana, Arial, Helvetica, sans-serif !important}
body * {font-family: Verdana, Arial, Helvetica, sans-serif !important}
body {font-size: 8pt !important}
body * {font-size: 8pt !important}
body {color: #00CC00 !important}
input {background-color: #303030 !important}
option {background-color: #303030 !important}
textarea {background-color: #303030 !important}
checkbox {background-color: #303030 !important}
input {color: #00CC00 !important}
option {color: #00CC00 !important}
textarea {color: #00CC00 !important}
a:link,a:active,a:visited { text-decoration: none ; color : #00CC00; }
a:hover { text-decoration: underline; color : #00CC00; }
hr { height: 0px; border: solid #BBBBBB 0px; border-top-width: 1px;}
}
}
-->
</style>
<style type="text/css">
<!--
.Stile1 {color: #FF0000 }
-->
</style>
<style type="text/css">
<!--
.Stile2 {color: #00CC00 }
{font-size: 10px;}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style>
<style type="text/css">
<!--
.Stile3 {color: #00CC00 }
{font-size: 20px}
{font-family: Verdana, Arial, Helvetica, sans-serif !important}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>';
// to be optimized...
echo 'Updating proxy list... please wait<br>';
function refresh()
{
flush();
ob_flush();
usleep(50000);
}
$i=0;
$myarray[$i]="AF"; $i=$i+1;
$myarray[$i]="AL"; $i=$i+1;
$myarray[$i]="DZ"; $i=$i+1;
$myarray[$i]="AS"; $i=$i+1;
$myarray[$i]="AD"; $i=$i+1;
$myarray[$i]="AO"; $i=$i+1;
$myarray[$i]="AI"; $i=$i+1;
$myarray[$i]="AQ"; $i=$i+1;
$myarray[$i]="AG"; $i=$i+1;
$myarray[$i]="AR"; $i=$i+1;
$myarray[$i]="AM"; $i=$i+1;
$myarray[$i]="AW"; $i=$i+1;
$myarray[$i]="AU"; $i=$i+1;
$myarray[$i]="AT"; $i=$i+1;
$myarray[$i]="AZ"; $i=$i+1;
$myarray[$i]="BS"; $i=$i+1;
$myarray[$i]="BH"; $i=$i+1;
$myarray[$i]="BD"; $i=$i+1;
$myarray[$i]="BB"; $i=$i+1;
$myarray[$i]="BY"; $i=$i+1;
$myarray[$i]="BE"; $i=$i+1;
$myarray[$i]="BZ"; $i=$i+1;
$myarray[$i]="BJ"; $i=$i+1;
$myarray[$i]="BM"; $i=$i+1;
$myarray[$i]="BT"; $i=$i+1;
$myarray[$i]="BO"; $i=$i+1;
$myarray[$i]="BA"; $i=$i+1;
$myarray[$i]="BW"; $i=$i+1;
$myarray[$i]="BV"; $i=$i+1;
$myarray[$i]="IO"; $i=$i+1;
$myarray[$i]="BN"; $i=$i+1;
$myarray[$i]="BG"; $i=$i+1;
$myarray[$i]="BF"; $i=$i+1;
$myarray[$i]="BI"; $i=$i+1;
$myarray[$i]="KH"; $i=$i+1;
$myarray[$i]="CM"; $i=$i+1;
$myarray[$i]="CA"; $i=$i+1;
$myarray[$i]="CV"; $i=$i+1;
$myarray[$i]="KY"; $i=$i+1;
$myarray[$i]="CF"; $i=$i+1;
$myarray[$i]="TD"; $i=$i+1;
$myarray[$i]="CL"; $i=$i+1;
$myarray[$i]="CN"; $i=$i+1;
$myarray[$i]="CX"; $i=$i+1;
$myarray[$i]="CC"; $i=$i+1;
$myarray[$i]="CO"; $i=$i+1;
$myarray[$i]="KM"; $i=$i+1;
$myarray[$i]="CD"; $i=$i+1;
$myarray[$i]="CG"; $i=$i+1;
$myarray[$i]="CK"; $i=$i+1;
$myarray[$i]="CR"; $i=$i+1;
$myarray[$i]="CI"; $i=$i+1;
$myarray[$i]="HR"; $i=$i+1;
$myarray[$i]="CU"; $i=$i+1;
$myarray[$i]="CY"; $i=$i+1;
$myarray[$i]="CZ"; $i=$i+1;
$myarray[$i]="DK"; $i=$i+1;
$myarray[$i]="DJ"; $i=$i+1;
$myarray[$i]="DM"; $i=$i+1;
$myarray[$i]="DO"; $i=$i+1;
$myarray[$i]="TP"; $i=$i+1;
$myarray[$i]="EC"; $i=$i+1;
$myarray[$i]="EG"; $i=$i+1;
$myarray[$i]="SV"; $i=$i+1;
$myarray[$i]="GQ"; $i=$i+1;
$myarray[$i]="ER"; $i=$i+1;
$myarray[$i]="EE"; $i=$i+1;
$myarray[$i]="ET"; $i=$i+1;
$myarray[$i]="FK"; $i=$i+1;
$myarray[$i]="FO"; $i=$i+1;
$myarray[$i]="FJ"; $i=$i+1;
$myarray[$i]="FI"; $i=$i+1;
$myarray[$i]="FR"; $i=$i+1;
$myarray[$i]="GF"; $i=$i+1;
$myarray[$i]="PF"; $i=$i+1;
$myarray[$i]="TF"; $i=$i+1;
$myarray[$i]="GA"; $i=$i+1;
$myarray[$i]="GM"; $i=$i+1;
$myarray[$i]="GE"; $i=$i+1;
$myarray[$i]="DE"; $i=$i+1;
$myarray[$i]="GH"; $i=$i+1;
$myarray[$i]="GI"; $i=$i+1;
$myarray[$i]="GR"; $i=$i+1;
$myarray[$i]="GL"; $i=$i+1;
$myarray[$i]="GD"; $i=$i+1;
$myarray[$i]="GP"; $i=$i+1;
$myarray[$i]="GU"; $i=$i+1;
$myarray[$i]="GT"; $i=$i+1;
$myarray[$i]="GN"; $i=$i+1;
$myarray[$i]="GW"; $i=$i+1;
$myarray[$i]="GY"; $i=$i+1;
$myarray[$i]="HT"; $i=$i+1;
$myarray[$i]="HM"; $i=$i+1;
$myarray[$i]="VA"; $i=$i+1;
$myarray[$i]="HN"; $i=$i+1;
$myarray[$i]="HK"; $i=$i+1;
$myarray[$i]="HU"; $i=$i+1;
$myarray[$i]="IS"; $i=$i+1;
$myarray[$i]="IN"; $i=$i+1;
$myarray[$i]="ID"; $i=$i+1;
$myarray[$i]="IR"; $i=$i+1;
$myarray[$i]="IQ"; $i=$i+1;
$myarray[$i]="IE"; $i=$i+1;
$myarray[$i]="IL"; $i=$i+1;
$myarray[$i]="IT"; $i=$i+1;
$myarray[$i]="JM"; $i=$i+1;
$myarray[$i]="JP"; $i=$i+1;
$myarray[$i]="JO"; $i=$i+1;
$myarray[$i]="KZ"; $i=$i+1;
$myarray[$i]="KE"; $i=$i+1;
$myarray[$i]="KI"; $i=$i+1;
$myarray[$i]="KP"; $i=$i+1;
$myarray[$i]="KR"; $i=$i+1;
$myarray[$i]="KW"; $i=$i+1;
$myarray[$i]="KG"; $i=$i+1;
$myarray[$i]="LA"; $i=$i+1;
$myarray[$i]="LV"; $i=$i+1;
$myarray[$i]="LB"; $i=$i+1;
$myarray[$i]="LS"; $i=$i+1;
$myarray[$i]="LR"; $i=$i+1;
$myarray[$i]="LY"; $i=$i+1;
$myarray[$i]="LI"; $i=$i+1;
$myarray[$i]="LT"; $i=$i+1;
$myarray[$i]="LU"; $i=$i+1;
$myarray[$i]="MO"; $i=$i+1;
$myarray[$i]="MK"; $i=$i+1;
$myarray[$i]="MG"; $i=$i+1;
$myarray[$i]="MW"; $i=$i+1;
$myarray[$i]="MY"; $i=$i+1;
$myarray[$i]="MV"; $i=$i+1;
$myarray[$i]="ML"; $i=$i+1;
$myarray[$i]="MT"; $i=$i+1;
$myarray[$i]="MH"; $i=$i+1;
$myarray[$i]="MQ"; $i=$i+1;
$myarray[$i]="MR"; $i=$i+1;
$myarray[$i]="MU"; $i=$i+1;
$myarray[$i]="YT"; $i=$i+1;
$myarray[$i]="MX"; $i=$i+1;
$myarray[$i]="FM"; $i=$i+1;
$myarray[$i]="MD"; $i=$i+1;
$myarray[$i]="MC"; $i=$i+1;
$myarray[$i]="MN"; $i=$i+1;
$myarray[$i]="MS"; $i=$i+1;
$myarray[$i]="MA"; $i=$i+1;
$myarray[$i]="MZ"; $i=$i+1;
$myarray[$i]="MM"; $i=$i+1;
$myarray[$i]="NA"; $i=$i+1;
$myarray[$i]="NR"; $i=$i+1;
$myarray[$i]="NP"; $i=$i+1;
$myarray[$i]="NL"; $i=$i+1;
$myarray[$i]="AN"; $i=$i+1;
$myarray[$i]="NC"; $i=$i+1;
$myarray[$i]="NZ"; $i=$i+1;
$myarray[$i]="NI"; $i=$i+1;
$myarray[$i]="NE"; $i=$i+1;
$myarray[$i]="NG"; $i=$i+1;
$myarray[$i]="NU"; $i=$i+1;
$myarray[$i]="NF"; $i=$i+1;
$myarray[$i]="MP"; $i=$i+1;
$myarray[$i]="NO"; $i=$i+1;
$myarray[$i]="OM"; $i=$i+1;
$myarray[$i]="PK"; $i=$i+1;
$myarray[$i]="PW"; $i=$i+1;
$myarray[$i]="PS"; $i=$i+1;
$myarray[$i]="PA"; $i=$i+1;
$myarray[$i]="PG"; $i=$i+1;
$myarray[$i]="PY"; $i=$i+1;
$myarray[$i]="PE"; $i=$i+1;
$myarray[$i]="PH"; $i=$i+1;
$myarray[$i]="PN"; $i=$i+1;
$myarray[$i]="PL"; $i=$i+1;
$myarray[$i]="PT"; $i=$i+1;
$myarray[$i]="PR"; $i=$i+1;
$myarray[$i]="QA"; $i=$i+1;
$myarray[$i]="RE"; $i=$i+1;
$myarray[$i]="RO"; $i=$i+1;
$myarray[$i]="RU"; $i=$i+1;
$myarray[$i]="RW"; $i=$i+1;
$myarray[$i]="SM"; $i=$i+1;
$myarray[$i]="ST"; $i=$i+1;
$myarray[$i]="SA"; $i=$i+1;
$myarray[$i]="SN"; $i=$i+1;
$myarray[$i]="YU"; $i=$i+1;
$myarray[$i]="SC"; $i=$i+1;
$myarray[$i]="SL"; $i=$i+1;
$myarray[$i]="SG"; $i=$i+1;
$myarray[$i]="SK"; $i=$i+1;
$myarray[$i]="SI"; $i=$i+1;
$myarray[$i]="SB"; $i=$i+1;
$myarray[$i]="SO"; $i=$i+1;
$myarray[$i]="ZA"; $i=$i+1;
$myarray[$i]="GS"; $i=$i+1;
$myarray[$i]="ES"; $i=$i+1;
$myarray[$i]="LK"; $i=$i+1;
$myarray[$i]="SH"; $i=$i+1;
$myarray[$i]="KN"; $i=$i+1;
$myarray[$i]="LC"; $i=$i+1;
$myarray[$i]="PM"; $i=$i+1;
$myarray[$i]="VC"; $i=$i+1;
$myarray[$i]="SD"; $i=$i+1;
$myarray[$i]="SR"; $i=$i+1;
$myarray[$i]="SJ"; $i=$i+1;
$myarray[$i]="SZ"; $i=$i+1;
$myarray[$i]="SE"; $i=$i+1;
$myarray[$i]="CH"; $i=$i+1;
$myarray[$i]="SY"; $i=$i+1;
$myarray[$i]="TW"; $i=$i+1;
$myarray[$i]="TJ"; $i=$i+1;
$myarray[$i]="TZ"; $i=$i+1;
$myarray[$i]="TH"; $i=$i+1;
$myarray[$i]="TG"; $i=$i+1;
$myarray[$i]="TK"; $i=$i+1;
$myarray[$i]="TO"; $i=$i+1;
$myarray[$i]="TT"; $i=$i+1;
$myarray[$i]="TN"; $i=$i+1;
$myarray[$i]="TR"; $i=$i+1;
$myarray[$i]="TM"; $i=$i+1;
$myarray[$i]="TC"; $i=$i+1;
$myarray[$i]="TV"; $i=$i+1;
$myarray[$i]="UG"; $i=$i+1;
$myarray[$i]="UA"; $i=$i+1;
$myarray[$i]="AE"; $i=$i+1;
$myarray[$i]="UK"; $i=$i+1;
$myarray[$i]="US"; $i=$i+1;
$myarray[$i]="UY"; $i=$i+1;
$myarray[$i]="UM"; $i=$i+1;
$myarray[$i]="UZ"; $i=$i+1;
$myarray[$i]="VU"; $i=$i+1;
$myarray[$i]="VE"; $i=$i+1;
$myarray[$i]="VN"; $i=$i+1;
$myarray[$i]="VG"; $i=$i+1;
$myarray[$i]="VI"; $i=$i+1;
$myarray[$i]="WF"; $i=$i+1;
$myarray[$i]="EH"; $i=$i+1;
$myarray[$i]="WS"; $i=$i+1;
$myarray[$i]="YE"; $i=$i+1;
$myarray[$i]="ZM"; $i=$i+1;
$myarray[$i]="ZW"; $i=$i+1;
echo 'Updating proxy list... please wait<br>';
if (file_exists('proxylist.txt'))
{
rename('proxylist.txt','origine.txt');
$proxylist=fopen('origine.txt',"a");}
else
{$proxylist=fopen('origine.txt',"a");}
for ($j=0; $j<=count($myarray)-1; $j++)
{
$packet="POST /proxy/index.php HTTP/1.1\r\n";
$packet.="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, */*\r\n";
$packet.="Referer: http://ecomstudio.net/proxy/index.php\r\n";
$packet.="Accept-Language: it\r\n";
$packet.="Content-Type: application/x-www-form-urlencoded\r\n";
$packet.="Accept-Encoding: gzip, deflate\r\n";
$packet.="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n";
$packet.="Host: ecomstudio.net\r\n";
$packet.="Content-Length: 27\r\n";
$packet.="Connection: Keep-Alive\r\n";
$packet.="Cache-Control: no-cache\r\n";
$packet.="Cookie: PHPSESSID=98b6ec619e39dfb37a99076f756c28b7\r\n\r\n";
$packet.="type=&country=".$myarray[$j]."&submit=Get";
$ock=fsockopen("ecomstudio.net",80);
fputs($ock,$packet);
$data='';
while (!feof($ock))
{
$data.=fgets($ock);
}
$data=str_replace("\r","",str_replace("\n","",$data));
$data=str_replace(" ","",$data);
$data=str_replace(" </TD> <TDvalign=topclass=textblack>",':',$data);
$data=str_replace("</html>0","",$data);
$ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
$c = preg_match_all($ip_regex,$data,$proxies);
for ($i=0; $i<=$c-1; $i++)
{
if ($proxies<> '')
{
echo $proxies[0][$i];
$ip_port_pair=explode(':',$proxies[0][$i]);
//check if the proxy is down or up, check if it is anonymous or trasparent
$startTime = microtime();
$check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
$endTime = microtime();
$timeDiff = $endTime - $startTime;
if (!$check_proxy) {echo '<span class="Stile3">';
echo ' -> mmmhhh...down<br>';
echo '</span>';
}
else
{
echo " -> OK! It''s up ";
echo ' responsetime -> '.$timeDiff;
fputs($proxylist,$proxies[0][$i]."\r\n");
echo '<br></span>';
fclose($check_proxy);
}
refresh();
}
}
fclose($ock);
}
//
//$fp=fsockopen('www.digitalcybersoft.com',80); // a proxy list site
// $packet ="GET /ProxyList/ HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 50)...
// $packet.="Accept: */*\r\n";
// $packet.="Accept-Encoding: text/plain\r\n";
// $packet.="User-Agent: Mozilla 5\r\n";
// $packet.="Host: www.digitalcybersoft.com\r\n\r\n";
// $packet.="Connection: Keep_Alive\r\n\r\n";
// fputs($fp,$packet);
// $data='';
// while (!feof($fp))
// {
// $data.=fgets($fp);
// }
// $ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
// $c = preg_match_all($ip_regex,$data,$proxies);
// for ($i=0; $i<=$c-1; $i++)
// {
//// keeps it flowing to the browser?
//flush();
//ob_flush();
//// 50000 microseconds keeps things flowing in safari, IE, firefox, etc
//usleep(50000);
//
// if ($proxies<> '')
// {
//
// echo $proxies[0][$i];
// $ip_port_pair=explode(':',$proxies[0][$i]);
// //check if the proxy is down or up....
// $check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
// if (!$check_proxy) {echo '<span class="Stile3">';
// echo ' -> mmmhhh...down<br>';
// echo '</span>';
// }
// else
// {
// echo " -> OK! It'up <br>";
// fputs($proxylist,$proxies[0][$i]."\r\n");
// echo '</span>';
// }
// fclose($check_proxy);
// }
//
// }
// fclose($fp);
//for ($p=1; $p<=50; $p++)
// {
//// keeps it flowing to the browser?
//flush();
//ob_flush();
//// 50000 microseconds keeps things flowing in safari, IE, firefox, etc
//usleep(50000);
//proxy grabber 3
// $fp=fsockopen('www.2proxy.com',80); // a proxy list site
// $packet ="GET /?freeproxylist=".$p." HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 50)...
// $packet.="Accept: */*\r\n";
// $packet.="Accept-Encoding: text/plain\r\n";
// $packet.="User-Agent: Mozilla 5\r\n";
// $packet.="Host: www.2proxy.com\r\n\r\n";
// $packet.="Connection: Keep_Alive\r\n\r\n";
// fputs($fp,$packet);
// $data='';
// while (!feof($fp))
// {
// $data.=fgets($fp);
// }
// $ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
// $c = preg_match_all($ip_regex,$data,$proxies);
// for ($i=0; $i<=$c-1; $i++)
// {
// if ($proxies<> '')
// {
// echo $proxies[0][$i];
// $ip_port_pair=explode(':',$proxies[0][$i]);
// //check if the proxy is down or up....
// $check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
// if (!$check_proxy) {echo '<span class="Stile3">';
// echo ' -> mmmhhh...down<br>';
// echo '</span>';
// }
// else
// {
// echo " -> OK! It'up <br>";
// fputs($proxylist,$proxies[0][$i]."\r\n");
// echo '</span>';
// }
// fclose($check_proxy);
// }
//
// }
// fclose($fp);
// sleep(1);
// }
//for ($p=1; $p<=1; $p++)
// {
//// keeps it flowing to the browser?
//flush();
//ob_flush();
//// 50000 microseconds keeps things flowing in safari, IE, firefox, etc
//usleep(50000);
//
//
//
////proxy grabber 1
// $fp=fsockopen('www.steganos.com',80); // a proxy list site
// $packet ="GET /?area=updateproxylist HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 100)...
// $packet.="Accept: */*\r\n";
// $packet.="Accept-Encoding: text/plain\r\n";
// $packet.="User-Agent: mybrowser\r\n";
// $packet.="Host: www.steganos.com\r\n\r\n";
// $packet.="Connection: Keep_Alive\r\n\r\n";
// //$packet.="Cookie: AiSR=1/20/2005 3:55:10 AM | ".$REMOTE_ADDR." | http://www.google.it/search?hl=it&q=proxy+list&meta= |";
// //$packet.=" it; ASP.NET_SessionId=of2dgt554iwr0c55zpl0t2mz\r\n\r\n";
// fputs($fp,$packet);
// $data='';
// while (!feof($fp))
// {
// $data.=fgets($fp);
// }
// $ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
// $c = preg_match_all($ip_regex,$data,$proxies);
// for ($i=0; $i<=$c-1; $i++)
// {
// if ($proxies<> '')
// {
// echo $proxies[0][$i];
// $ip_port_pair=explode(':',$proxies[0][$i]);
// //check if the proxy is down or up....
// $check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
// if (!$check_proxy) {echo '<span class="Stile3">';
// echo ' -> mmmhhh...down<br>';
// echo '</span>';
// }
// else
// {
// echo " -> OK! It's up <br>";
// fputs($proxylist,$proxies[0][$i]."\r\n");
// echo '</span>';
// }
// fclose($check_proxy);
// }
//
// }
// fclose($fp);
// sleep(1);
// }
//
//
//
//for ($p=1; $p<=1; $p++)
// {
//
//
// //proxy grabber 1
// $fp=fsockopen('www.freeproxy.ru',80); // a proxy list site
// $packet ="GET /download/lists/goodproxy.txt HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 100)...
// $packet.="Accept: */*\r\n";
// $packet.="Accept-Encoding: text/plain\r\n";
// $packet.="User-Agent: mybrowser\r\n";
// $packet.="Host: www.freeproxy.ru\r\n\r\n";
// $packet.="Connection: Keep_Alive\r\n\r\n";
// //$packet.="Cookie: AiSR=1/20/2005 3:55:10 AM | ".$REMOTE_ADDR." | http://www.google.it/search?hl=it&q=proxy+list&meta= |";
// //$packet.=" it; ASP.NET_SessionId=of2dgt554iwr0c55zpl0t2mz\r\n\r\n";
// fputs($fp,$packet);
// $data='';
// while (!feof($fp))
// {
// $data.=fgets($fp);
// }
// $ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
// $c = preg_match_all($ip_regex,$data,$proxies);
// for ($i=0; $i<=$c-1; $i++)
// {
// if ($proxies<> '')
// {
// echo $proxies[0][$i];
// $ip_port_pair=explode(':',$proxies[0][$i]);
// //check if the proxy is down or up....
// $check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
// if (!$check_proxy) {echo '<span class="Stile3">';
// echo ' -> mmmhhh...down<br>';
// echo '</span>';
// }
// else
// {
// echo " -> OK! It's up <br>";
// fputs($proxylist,$proxies[0][$i]."\r\n");
// echo '</span>';
// }
// fclose($check_proxy);
// }
//
// }
// fclose($fp);
// sleep(1);
// }
for ($p=1; $p<=100; $p++)
{
// keeps it flowing to the browser?
flush();
ob_flush();
// 50000 microseconds keeps things flowing in safari, IE, firefox, etc
usleep(50000);
$fp=fsockopen('www.atomintersoft.com',80); // a proxy list site
$packet ="GET /products/alive-proxy/proxy-list/?p=".$p." HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 100)...
$packet.="Accept: */*\r\n";
$packet.="Referer: http://www.atomintersoft.com/products/alive-proxy/proxy-list/?p=1\r\n";
$packet.="Accept-Encoding: text/plain\r\n";
$packet.="User-Agent: mybrowser\r\n";
$packet.="Host: www.atomintersoft.com\r\n\r\n";
$packet.="Connection: Keep_Alive\r\n\r\n";
//$packet.="Cookie: AiSR=1/20/2005 3:55:10 AM | ".$REMOTE_ADDR." | http://www.google.it/search?hl=it&q=proxy+list&meta= |";
//$packet.=" it; ASP.NET_SessionId=of2dgt554iwr0c55zpl0t2mz\r\n\r\n";
fputs($fp,$packet);
$data='';
while (!feof($fp))
{
$data.=fgets($fp);
}
$ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
$c = preg_match_all($ip_regex,$data,$proxies);
for ($i=0; $i<=$c-1; $i++)
{
if ($proxies<> '')
{
echo $proxies[0][$i];
$ip_port_pair=explode(':',$proxies[0][$i]);
//check if the proxy is down or up, check if it is anonymous or trasparent
$startTime = microtime();
$check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
$endTime = microtime();
$timeDiff = $endTime - $startTime;
if (!$check_proxy) {echo '<span class="Stile3">';
echo ' -> mmmhhh...down<br>';
echo '</span>';
}
else
{
echo " -> OK! It''s up ";
echo ' responsetime -> '.$timeDiff;
fputs($proxylist,$proxies[0][$i]."\r\n");
echo '<br></span>';
}
fclose($check_proxy);
}
}
fclose($fp);
sleep(1);
}
for ($p=1; $p<=300; $p++)
{
//proxy grabber 2
$fp=fsockopen('www.kofein.com.ua',80); // a proxy list site
if ($p<10) {$p="00".$p;} else
if ($p<100) {$p="0".$p;}
$packet ="GET /hack/proxy/".$p.".html HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 300)...
$packet.="Accept: */*\r\n";
$packet.="Accept-Encoding: text/plain\r\n";
$packet.="User-Agent: Mozilla 5\r\n";
$packet.="Host: www.kofein.com.ua\r\n\r\n";
$packet.="Connection: Keep_Alive\r\n\r\n";
fputs($fp,$packet);
$data='';
while (!feof($fp))
{
$data.=fgets($fp);
}
$ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
$c = preg_match_all($ip_regex,$data,$proxies);
for ($i=0; $i<=$c-1; $i++)
{
if ($proxies<> '')
{
echo $proxies[0][$i];
$ip_port_pair=explode(':',$proxies[0][$i]);
//check if the proxy is down or up....
$check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
if (!$check_proxy) {echo '<span class="Stile3">';
echo ' -> mmmhhh...down<br>';
echo '</span>';
}
else
{
echo " -> OK! It's up <br>";
fputs($proxylist,$proxies[0][$i]."\r\n");
echo '</span>';
}
fclose($check_proxy);
}
}
fclose($fp);
sleep(1);
}
for ($p=1; $p<=20; $p++)
{
// keeps it flowing to the browser?
flush();
ob_flush();
// 50000 microseconds keeps things flowing in safari, IE, firefox, etc
usleep(50000);
//proxy grabber 3
$fp=fsockopen('www.nntime.com',80); // a proxy list site
$packet ="GET /proxy/proxy-list-".$p.".htm HTTP/1.0\r\n"; //$p is for page numeration (from 1 to 300)...
$packet.="Accept: */*\r\n";
$packet.="Accept-Encoding: text/plain\r\n";
$packet.="User-Agent: Mozilla 5\r\n";
$packet.="Host: www.nntime.com\r\n\r\n";
$packet.="Connection: Keep_Alive\r\n\r\n";
fputs($fp,$packet);
$data='';
while (!feof($fp))
{
$data.=fgets($fp);
}
$ip_regex = '(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}\b)'; //simple a.b.c.d:port regex...
$c = preg_match_all($ip_regex,$data,$proxies);
for ($i=0; $i<=$c-1; $i++)
{
if ($proxies<> '')
{
echo $proxies[0][$i];
$ip_port_pair=explode(':',$proxies[0][$i]);
//check if the proxy is down or up....
$check_proxy =fsockopen($ip_port_pair[0], $ip_port_pair[1], &$errno, &$errstr,1);
if (!$check_proxy) {echo '<span class="Stile3">';
echo ' -> mmmhhh...down<br>';
echo '</span>';
}
else
{
echo " -> OK! It'up <br>";
fputs($proxylist,$proxies[0][$i]."\r\n");
echo '</span>';
}
fclose($check_proxy);
}
}
fclose($fp);
sleep(1);
}
fclose($proxylist);
echo '<br> Done!!! <br>';
echo 'checking for dublicate entries...<br>';
system('dupl.exe');
rename('destinazione.txt','proxylist.txt');
echo '</body>';
?>
function do_socks($addr,$port,$target){
unset($return);
$sock = @fsockopen($addr,$port,$errno,$errstr,5);
if($sock){
stream_set_timeout($sock,5);
$res = fwrite($sock,pack("CCnA4x",4,1,80,$target));
if($res){
$msg = fgets($sock);
if($msg){
$repcode = unpack("C*",$msg);
if($repcode[2] == 90) $return[4]=1; else $return[0].="no 90 socks4 ";
}
else $return[0].="no get socks4 ";
}
else $return[0].="no write socks4 ";
$res = fwrite($sock,pack("CCC",5,1,0));
if($res){
$msg = fgets($sock);
if($msg){
$repcode = unpack("C*",$msg);
if ($repcode[2] == 0){
$res = fwrite($sock,pack("CCCCa4n", 5, 1, 0, 1, $target,80));
if($res){
$msg = fgets($sock);
if($msg){
$repcode = unpack("C*",$msg);
if($repcode[2] == 0) $return[5]=1; else $return[0].="no 0 socks5 ";
}
else $return[0].="no get2 socks5 ";
}
}
else $return[0].="no connection socks5 ";
}
else $return[0].="no get1 socks5 ";
}
else $return[0].="no write socks5 ";
}
else $return[0].="no fsockopen";
return $return;
}
Вопрос такой - как можно проверить (и чем) проксю на бан гугла?
в смысле, что гугль ее определяет как проксю? уверен никак, это же какое отверстие для кликеров
Бред имхо.Снижаем нагрузку:
Даем запрос гугл калькулятору: пр. 10+5*80
Для просмотра ссылки Войдиили Зарегистрируйся
ищем вхождение ответа (410) на странице.
Хахаха... Ты хоть раз пробовал проксей кликать? ))) Гугл зарабатывает бабки на рекламе, и они давно прохавали этот вариант кликеров... Наверное лет пять уже как... Обмануть Гугл очень сложно тем более в его собственном бизнесе... А вот засветиться и попасть под бан в раз. Так что не советуй человеку то, чего сам не пробовал