如何卸載阿里云云盾

背景/前言

最近有一個朋友購買了一臺阿里雲的輕量應用服務器,可是卻聯繫到了我,詢問我如何卸載阿里云云盾。也許是感受有個雲盾不能自由玩耍吧,據說上傳一個shell均可以直接報警。在百般探討下,終於找到了卸載的方式shell

我的認爲,沒事仍是不要去卸載雲盾,畢竟雲盾有些時候仍是有用的,能夠避免他人惡意上傳shellbash

不用懼怕危險,由於你能夠看一下地址,是阿里雲的卸載腳本🎉️服務器

1. 卸載雲盾部件

wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
./uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
./quartz_uninstall.sh

2. 卸載殘留文件

pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

3. 屏蔽阿里雲檢查

iptables -I INPUT -s 140.205.201.0/28 -j DROP
iptables -I INPUT -s 140.205.201.16/29 -j DROP
iptables -I INPUT -s 140.205.201.32/28 -j DROP
iptables -I INPUT -s 140.205.225.192/29 -j DROP
iptables -I INPUT -s 140.205.225.200/30 -j DROP
iptables -I INPUT -s 140.205.225.184/29 -j DROP
iptables -I INPUT -s 140.205.225.183/32 -j DROP
iptables -I INPUT -s 140.205.225.206/32 -j DROP
iptables -I INPUT -s 140.205.225.205/32 -j DROP
iptables -I INPUT -s 140.205.225.195/32 -j DROP
iptables -I INPUT -s 140.205.225.204/32 -j DROP