1. Регаем сайт
2. Регаем мыло на atlas.cz
3. В файл proxy.txt пихаем рабочие прокси (как их получить см. во втором посте.)
4. Создаем пустой файл regged.txt
5. Заливаем все это добро к себе на сайт
6. на файл regged.txt ставим атрибуты 0777
7. Запускаем ...
Код:
<?
$account="ТВОЕ_МЫЛО@atlas.cz"; //our e-mail
$password="ПАРОЛЬ"; //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 [link=http://registrace.atlas.cz/verify.aspx]http://registrace.atlas.cz/verify.aspx[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/login.aspx]http://registrace.atlas.cz/login.aspx[/link]\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 [link=http://registrace.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP=]http://registrace.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP=[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/verify.aspx]http://registrace.atlas.cz/verify.aspx[/link]\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 [link=http://registrace.atlas.cz/]http://registrace.atlas.cz/[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP=]http://registrace.atlas.cz/checkcookie.aspx?LANGID=cz&SKIN=AtlasCZ&REFAPP=[/link]\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 [link=http://registrace.atlas.cz/profile.aspx?REFAPP=]http://registrace.atlas.cz/profile.aspx?REFAPP=[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/]http://registrace.atlas.cz/[/link]\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 [link=http://registrace.atlas.cz/icq.aspx]http://registrace.atlas.cz/icq.aspx[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/profile.aspx?REFAPP=]http://registrace.atlas.cz/profile.aspx?REFAPP=[/link]\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 [link=http://registrace.atlas.cz/icq.aspx]http://registrace.atlas.cz/icq.aspx[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/icq.aspx]http://registrace.atlas.cz/icq.aspx[/link]\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 [link=http://registrace.atlas.cz/icq.aspx]http://registrace.atlas.cz/icq.aspx[/link] HTTP/1.0\r\nAccept: */*\r\nReferer: [link=http://registrace.atlas.cz/icq.aspx]http://registrace.atlas.cz/icq.aspx[/link]\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);
?>
