背景/前言
最近有一個朋友購買了一台阿里雲的輕量應用服務器,但是卻聯系到了我,詢問我如何卸載阿里雲雲盾。也許是感覺有個雲盾不能自由玩耍吧,聽說上傳一個shell都可以直接報警。在百般探討下,終於找到了卸載的方式
個人認為,沒事還是不要去卸載雲盾,畢竟雲盾有些時候還是有用的,可以避免他人惡意上傳shell
不用害怕危險,因為你可以看一下地址,是阿里雲的卸載腳本🎉️
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