宝塔去后门临时方案

date
May 15, 2022
slug
tip-bt-baota-remove-holes
status
Published
summary
小技巧 去掉后门
tags
tip
type
Post
URL

Problem & Summary

Solution


# 我这里给出临时解决方案(应该大概也许不会有什么影响吧)
# 复制下列四行至服务器

cp /www/server/panel/script/site_task.py /tmp/
echo "" > /www/server/panel/script/site_task.py
chattr +i /www/server/panel/script/site_task.py
rm -rf /www/server/panel/logs/request/*
chattr +i -R /www/server/panel/logs/request

echo '127.0.0.1 bt.cn' >> /etc/hosts

Screenshots

notion image
 

© Ying Bun 2021 - 2024