Linux下的Zen Cart安全脚本
- 2024-04-05 05:13:26
- 来源:本站整理
- 在手机上看
扫一扫立即进入手机端
#!/bin/bash
echo “install some setting for zen cart because of some secure reason...“
for site in /data0/htdocs/*;do
if [ -d $site ]; then
if [ -f $site/includes/application_top.php ]; then
echo $site“ is zen cart folder“
chmod 444 -R $site/docs
chmod 444 -R $site/extras
chmod 444 $site/install.txt
rm -rf $site/download
rm -rf $site/media
rm -rf $site/pub
for zi in `ls $site |grep zc_install`; do
echo “found zc_install and delete it“
rm -rf $site/$zi
done
echo “dropping “$site“/admin/password_forgotten.php“
rm -f $site/admin/password_forgotten.php
#echo “setting init_header.php...“
ls $site/includes/init_includes/init_header.php
sed -i $site/includes/init_includes/init_header.php -e “s/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'false'/g“
fi
fi
done
相关资讯
更多-
LINUX与UNIX SHELL编程指南
中文|19.1M
-
检疫镇手机版
中文|72.5M
-
国人健康馆
中文|102.4M
-
来趣拼购物app
中文|26.2M
-
决战平安京海外加速服
中文|1.92G
-
射击骑士团h5手游
中文|3.4M
-
视频换背景软件手机版
中文|203.8M
-
视频换背景软件手机版
中文|203.8M
-
视频换背景软件手机版
中文|203.8M