|
Познавший АНТИЧАТ
Регистрация: 01.06.2008
Сообщений: 1,047
Провел на форуме: 5321514
Репутация:
3313
|
|
Приведите в нормальный вид товарищ.
PHP код:
<?php
$account = "jdiwp1318316932@atlas.c"; //our e-mail
$password = "6VGNsofK"; //our password
error_reporting(0);
set_time_limit(0);
ini_set("max_execution_time","0");
ini_set("memory_limit","9999M");
ini_set("output_buffering","0");
set_magic_quotes_runtime(0);
ignore_user_abort(1);
$prox = file("proxy.txt");
$good = "regged.txt";
$fpp = fopen($good,"a+");
$timeout = "5"; //sec.
for($w = 0; $w <= count($prox); $w++)
{
list($addr,$port) = explode(":",$prox[$w]);
$addr = trim($addr);
$port = trim($port);
if($sock = @fsockopen($addr,$port,$errno,$err,$timeout))
{
$request1 = "REFAPP=&username=".$account."&password=".$password;
$request = "POST http://profil.atlas.cz/verify.aspx HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/login.aspx\r\nAccept-Language: ru\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nContent-Length: ".
strlen($request1)."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\nCache-Control: no-cache\r\n\r\n".$request1;
fputs($sock,$request); //sending request
$headers = "";
$body = "";
while(!strstr($headers .= fgets($sock,2048),"\r\n\r\n") && !feof($sock))
{
$headers .= "";
}
$hlst = explode("\r\n",$headers);
for($i = 0; $i <= count($hlst); $i++)
{
if(strstr($hlst[$i],"Set-Cookie: "))
{
$cookie = str_replace("Set-Cookie: ","",$hlst[$i]);
}
}
fclose($sock);
unset($sock,$request,$errno,$err,$i,$headers,$hlst,$body);
$reqc1 = "GET http://profil.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP= HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/verify.aspx\r\nAccept-Language: ru\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nCookie: ".
$cookie."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\n\r\n";
$reqc2 = "GET http://profil.atlas.cz/ HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP=\r\nAccept-Language: ru\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nCookie: ".
$cookie."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\n\r\n";
$reqc3 = "GET http://profil.atlas.cz/profile.aspx?REFAPP= HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/\r\nAccept-Language: ru\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nCookie: ".
$cookie."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\n\r\n";
if($s0cket = @fsockopen($addr,$port,$errno,$err,$timeout))
{
fputs($s0cket,$reqc1); //sending request
fclose($s0cket);
unset($s0cket);
if($s0cket = @fsockopen($addr,$port,$errno,$err,$timeout))
{
fputs($s0cket,$reqc2); //sending request
fclose($s0cket);
unset($s0cket);
if($s0cket = @fsockopen($addr,$port,$errno,$err,$timeout))
{
fputs($s0cket,$reqc3); //sending request
fclose($s0cket);
unset($s0cket,$reqc1,$reqc2,$reqc3);
$sock = @fsockopen($addr,$port,$errno,$err,$timeout); //creating socket
$request = "GET http://profil.atlas.cz/icq.aspx HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/profile.aspx?REFAPP=\r\nAccept-Language: ru\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nCookie: ".
$cookie."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\n\r\n";
fputs($sock,$request); //sending request
$body = "";
while(!strstr($body .= fgets($sock,20480),"</html>") && !feof($sock))
{
$body .= "";
}
$blst = explode("\r\n",$body);
for($i = 0; $i <= count($blst); $i++)
{
if(strstr($blst[$i],'<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="'))
{
$viewstate = str_replace('<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="',"",$blst[$i]);
$viewstate = str_replace('" />',"",$viewstate);
$viewstate = urlencode(trim($viewstate));
}
if(strstr($blst[$i],'<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="'))
{
$eventvalid = str_replace('<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="',"",$blst[$i]);
$eventvalid = str_replace('" />',"",$eventvalid);
$eventvalid = urlencode(trim($eventvalid));
}
}
fclose($sock);
unset($sock,$request,$errno,$err,$request1,$body);
for($j = 0; $j < 3; $j++)
{
if($sock = @fsockopen($addr,$port,$errno,$err,$timeout))
{
$request1 = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=".$viewstate."&ua_icqstatus=1&ua_icq=&icqpassword=&passwordset=0&btnconnect=Propojit+%C3%BA%C4%8Dty&__EVENTVALIDATION=".$eventvalid;
$request = "POST http://profil.atlas.cz/icq.aspx HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/icq.aspx\r\nAccept-Language: ru\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nContent-Length: ".
strlen($request1)."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\nCache-Control: no-cache\r\nCookie: ".$cookie."\r\n\r\n".$request1;
fputs($sock,$request); //sending request
$body = "";
while(!strstr($body .= fgets($sock,2048),"</html>") && !feof($sock))
{
$body .= "";
}
fclose($sock);
unset($sock,$request,$request1);
if($sock = @fsockopen($addr,$port,$errno,$err,"2"))
{
$request1 = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=".$viewstate."&ua_icqstatus=1&ua_icq=&icqpassword=&passwordset=0&btndisconnect=Propojit+%C3%BA%C4%8Dty&__EVENTVALIDATION=".$eventvalid;
$request = "POST http://profil.atlas.cz/icq.aspx HTTP/1.0\r\nAccept: */*\r\nReferer: http://profil.atlas.cz/icq.aspx\r\nAccept-Language: ru\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept-Encoding: gzip\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nHost: $addr:$port\r\nContent-Length: ".
strlen($request1)."\r\nConnection: Keep-Alive\r\nProxy-Connection: Keep-Alive\r\nCache-Control: no-cache\r\nCookie: ".$cookie."\r\n\r\n".$request1;
fputs($sock,$request); //sending request
fclose($sock);
unset($sock,$request,$request1);
$body = preg_replace("#HTTP[^>]*?[>].*?tem ICQ #is","",$body);
$body2 = trim($body);
$body3 = substr($body2,0,9);
if(is_numeric($body3))
{
fputs($fpp,$body3.";".$password."\r\n");
echo $body3.";".$password."<br>\r\n";
flush();
}
}
}
}
}
}
}
}
unset($addr,$port);
}
fclose($fpp);
?>
Что конкретно не работает? Уточните пожалуйста
Думаю я не смогу разобраться что вы написали...
|