当前位置:网站首页>记一次清理挖矿病毒的过程
记一次清理挖矿病毒的过程
2022-07-06 13:28:00 【奔跑吧邓邓子】
一、现象
网站挂掉了,查看后台服务已宕掉,无法正常重启。
二、处理
1.查看内存使用情况
在没有启动任何服务的情况下,内存已基本被耗尽:
free -h
total used free shared buff/cache available
Mem: 7.6G 6.4G 581M 401M 690M 640M
Swap: 0B 0B 0B
2.查看各进程资源使用情况
top
top - 11:44:00 up 389 days, 23:40, 4 users, load average: 0.00, 0.01, 0.05
Tasks: 209 total, 1 running, 156 sleeping, 0 stopped, 52 zombie
%Cpu(s): 0.1 us, 0.2 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8008264 total, 683664 free, 6721116 used, 603484 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 642776 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2999 root 20 0 162244 2432 1592 S 0.3 0.0 0:00.68 top
5303 root 30 10 3180208 56596 784 S 0.3 0.7 1791:48 xmrig
...
看到 xmrig 占用了资源。
3.查看计划任务
ls /var/spool/cron/
root
查看 root 文件内容:
vi root
30 21 * * * bash /usr/local/apache-tomcat-8.0.46/bin/.moneroocean/miner.sh
查看 .moneroocean 目录下文件:
cd /usr/local/apache-tomcat-8.0.46/bin/.moneroocean
ll
total 8628
-rw-r--r-- 1 root root 6983 Jun 8 03:52 config.json
-rwxr-xr-x 1 root root 375 Jun 8 03:49 miner.sh
-rwxr-xr-x 1 root root 8821240 Apr 1 09:46 xmrig
4.删除文件
cd /var/spool/cron/
rm -rf *
cd /usr/local/apache-tomcat-8.0.46/bin/
rm -rf .moneroocean/
5.杀掉 xmrig 进程
查找所有的 xmrig 进程并杀掉:
ps -ef | grep xmrig
6.重启服务
最好重启下服务器再重启服务,此时服务已正常。
边栏推荐
- 代理和反向代理
- numpy 下载安装
- @Detailed differences among getmapping, @postmapping and @requestmapping, with actual combat code (all)
- guava: Multiset的使用
- 技术分享 | 抓包分析 TCP 协议
- C语言:#if、#def和#ifndef综合应用
- 嵌入式开发的7大原罪
- jvm:大对象在老年代的分配
- C language char, wchar_ t, char16_ t, char32_ Relationship between T and character set
- guava:创建immutableXxx对象的3种方式
猜你喜欢

Is it profitable to host an Olympic Games?
![[interpretation of the paper] machine learning technology for Cataract Classification / classification](/img/0c/b76e59f092c1b534736132faa76de5.png)
[interpretation of the paper] machine learning technology for Cataract Classification / classification

50 commonly used numpy function explanations, parameters and usage examples

50个常用的Numpy函数解释,参数和使用示例

PostgreSQL install GIS plug-in create extension PostGIS_ topology

Shake Sound poussera l'application indépendante de plantation d'herbe "louable", les octets ne peuvent pas oublier le petit livre rouge?

一行代码可以做些什么?

Quick news: the flybook players' conference is held online; Wechat payment launched "education and training service toolbox"

Caching strategies overview

This year, Jianzhi Tencent
随机推荐
Redistemplate common collection instructions opsforset (V)
[in depth learning] pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
Replace Internet TV set-top box application through digital TV and broadband network
guava:Collections.unmodifiableXXX创建的collection并不immutable
[redis design and implementation] part I: summary of redis data structure and objects
Univariate cubic equation - relationship between root and coefficient
Happy sound 2[sing.2]
js通过数组内容来获取数组下标
【滑动窗口】第九届蓝桥杯省赛B组:日志统计
Quick news: the flybook players' conference is held online; Wechat payment launched "education and training service toolbox"
Sdl2 source analysis 7: performance (sdl_renderpresent())
Nodejs教程之Expressjs一篇文章快速入门
Fzu 1686 dragon mystery repeated coverage
Start the embedded room: system startup with limited resources
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
抖音将推独立种草App“可颂”,字节忘不掉小红书?
Numpy download and installation
JPEG2000 matlab source code implementation
npm run dev启动项目报错 document is not defined
对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事