当前位置:网站首页>Solve the mining virus sshd2 (redis does not set a password and clear the crontab scheduled task)
Solve the mining virus sshd2 (redis does not set a password and clear the crontab scheduled task)
2022-06-23 06:54:00 【zetor_ major】
Use in Tianyi cloud redis, Open the 6379 port , But I was not right at that time redis Set the password 、 Lead to the invasion of mining virus , Pictured :

This virus , Execution principle , Please refer to the article :
https://www.freebuf.com/column/211777.html
Virus script reference :
https://www.cnblogs.com/mikeguan/p/11314005.html
solve :
One 、 This virus starts after , Will occupy the host cpu to 99%.

1. Query virus path ,lsof -p pid:

2. Clear virus threads
kill -9 pid
3. Remove virus programs
rm -rf /tmp/javax/*
Two 、 Because after clearing , It can be pulled up by scheduled tasks , More stubborn , While clearing the process , To clear away Timing task ,
![]()
Detailed as follows :
1. If not used linux Timing task ,crontab, Can be removed
rm -rf /etc/cron.d/root
rm -rf /var/spool/cron/crontabs
rm -rf /etc/crontab
Turn off auto start :
systemctl disable crond.service
2. If you use , For clearing
rm -rf /var/spool/cron/crontabs/root
rm -rf /var/spool/cron/root
notes : Encounter something that cannot be deleted , perform :
- chattr -i /var/spool/cron/root
- chattr -a /var/spool/cron/root
cat -n /var/log/cron | tail -10
4. After clearing successfully
- Please redis Set the password ,
- Configure remote port security groups
- modify redis bind ip( Suggest )
边栏推荐
- QT设计师无法修改窗口大小,无法通过鼠标拖动窗口改变大小的解决方案
- core. What is JS ---kalrry
- 1161 Merging Linked Lists
- /bin/sh no such file or directory问题
- Set tensorflow1 X to pytorch
- 杂七杂八的东东
- Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)
- What are the pension financial products in 2022? Low risk
- 利用fuser查看文件使用情况
- Qt 中 QVariant 使用总结
猜你喜欢

VS2013 FFMPEG环境配置及常见错误处理

QT设计师无法修改窗口大小,无法通过鼠标拖动窗口改变大小的解决方案

Data indicators and data analysis models that designers need to understand

mysql 优化

Qt 中 QVariant 使用总结

ssm + ftp +ueditor

直播带货这么火,如何在小程序中实现视频通话及直播互动功能?

解决挖矿病毒 sshd2(redis未设密码、清除crontab定时任务)

Usage Summary of item views and item widgets controls in QT

【系统】右键桌面图标,转圈后,资源管理器就崩溃,桌面就重新刷新
随机推荐
Termux
SAP execution transaction code mrrl error -no message was found for partner 100065-
mysql 索引
Easy EDA #学习笔记09# | ESP32-WROOM-32E模组ESP32-DevKitC-V4开发板 一键下载电路
C语言运算符优先级口诀
asp.net文件下载demo与相关问题的处理
数据在内存中的存储方式(C语言)
将TensorFlow1.x改写为pytorch
Give up Visio, this drawing tool is really fragrant!
haas506 2.0开发教程-高级组件库-modem.net(仅支持2.2以上版本)
JS to create an array (all elements are objects)
Numerical calculation method chapter7 Calculating eigenvalues and eigenvectors of matrices
WPF Command指令和INotifyPropertyChanged
Machine learning artifact scikit learn minimalist tutorial
Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)
Some difficulties in making web pages
Open source to the world (Part 2): the power of open source from the evolution of database technology BDTC 2021
XXL-SSO 实现SSO单点登录
【毕业季·进击的技术er】自己的选择,跪着也要走
光谱共焦的测量原理及厚度测量模式