
18.06.2008, 02:54
|
|
Флудер
Регистрация: 20.11.2006
Сообщений: 3,315
Провел на форуме: 16641028
Репутация:
2371
|
|
Nightmarе, собственно сложности нету и такое реализуемо
PHP код:
<?php
$host = 'lol.com';
$port = 80;
$post = 'secretline=SECRET'; //POST данные
$http =
"POST http://".$host."/index.php HTTP/1.1\r\n".
"Host: ".$host."\r\n".
"User-Agent: Isya\r\n".
"Content-Type: application/x-www-form-urlencoded\r\n". //to form
"Content-Length: ".strlen($post)."\r\n\r\n".$post."\r\n";
$sock = fsockopen($host, $port, $errno, $errstr, 10);
if ($sock)
{
fwrite($sock, $http);
$content = '';
while (!feof($sock))
{
if (!$content .= fread($sock, 128))
{
$content = "";
}
}
fclose($sock);
}
echo $content; //Выводим что нам дал script2.php
?>
|
|
|