htaccess Protection for admincp / Дополнительный пароль в админку
Хак позволяет дополнительно запаролить админку или любую другую директорию.
this is a very simple hack
its only main function is to add htaccess protection for any dir by adding some small lines in the begining of Dir's index
our application will be on admincp's index (index.php)
Description: This hack will add htaccess protection to any folder by adding small lines in its index.php file & the user name & password for this protection is determined by two varables in the sam file & if the data entered was wrong, the page will give a black background with a title (Unauthorized) & a content says (Enter Here Only) when clicking it, it will direct to forum's root (index.php by default)
installation:
open the file index.php present in the dir admincp & search for the following code:
PHP Code:
$index['public'] = $index['public'];
$phpkd['username'] = "123"; // Here Is the User Name
$phpkd['password'] = "321"; // Here Is The htaccess Password
Hint: I tried some failure experiments to get the data for htaccess from the data base So any one have any imagination or ways to do that please tell me.
thanks
Not to change the values of the two variables $phpkd['username'] $phpkd['password'] to the username & password needed & note not to change this $index['public'] = $index['public'];
КотЪ, я имею ввиду readonle доступ, localfile inclusion баги например (не обязательно в вб...)
ну или другой популярный пример - на многих хостингах юзер на правах апачи через php-шный system($cmd) может лазать (read-only) по папкам других юзеров
DDDDD,
я здесь уже писал, как запаролить админку с помощью этого файла...
там все подробно описанои есть ссылка на сайт, который генерит md5 пароль, который введешь в поле, потом просто скачай готовый .htpasswd
=))
Гм-м... У меня еще одна фишка есть, .....пригодится ли она?
У меня хостинг на инфобоксе - http://www.infobox.ru/
Там в админпанели есть такая функция: "Паролирование директорий".
Ей тоже имеет смысл воспользоваться, что бы запаролить forum/admincp/
или это уже излишество? Как твое личное мнение?