Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by fost ( 16 years ago )
<? 

set_time_limit(0);
ini_set("memory_limit", "128M");


function http_send($host, $packet)
{ 
 
        $sock = fsockopen&#40;$host, 80&#41;;
        while (!$sock)
        { 
                print "n[-] No response from {$host}:80 Trying again...";
                $sock = fsockopen&#40;$host, 80&#41;;
        }
        fputs($sock, $packet);
        while (!feof($sock)) @$resp .= fread($sock, 1024);
        fclose($sock); //echo $resp;
  $max_page=preg_match_all("#<a >d+?</a> rn#",$resp,$max);
  $max_page=$max[1][0];
  $resp=str_replace('http://','', $resp);
  $resp=str_replace('www.','', $resp);
  $resp=str_replace('/','', $resp);
  $url=preg_match_all("#href="(.+)" class=a1>#",$resp,$url1);

echo '<pre>';

sort($url1[1]);


print_r($url1[1]);
 $f = fopen&#40;'test.txt', 'a'&#41;;
 for($i=0;$i<count($url1[1]);$i++)
  {
   fwrite($f, $url1[1][$i]."rn");
  }
 fclose($f);

}


for($j=1;$j<3;$j++)
{
$host = "www.liveinternet.ru";
$link="/rating/ru/meeting/index.html?page=$j";

$data = "";
$packet  = "GET {$link} HTTP/1.1rn";
$packet .= "Host: {$host}rn";
$packet .= "Referer: index.phprn";
$packet .= "Cookie: {$cook5};rn";
$packet .= "Content-Length: ".(strlen($data))."rn";
$packet .= "Content-Type: application/x-www-form-urlencodedrn";
$packet .= "Connection: closernrn";
$packet .= $data;

http_send($host,$packet);
}

?>

 

Revise this Paste

Children: 23835
Your Name: Code Language: