当前位置:网站首页>记一次清理挖矿病毒的过程
记一次清理挖矿病毒的过程
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.重启服务
最好重启下服务器再重启服务,此时服务已正常。
边栏推荐
- js中,字符串和数组互转(二)——数组转为字符串的方法
- Four common ways and performance comparison of ArrayList de duplication (jmh performance analysis)
- guava:创建immutableXxx对象的3种方式
- Univariate cubic equation - relationship between root and coefficient
- Redistemplate common collection instructions opsforzset (VI)
- Divide candy
- Hill | insert sort
- ROS error: could not find a package configuration file provided by "move_base“
- First batch selected! Tencent security tianyufeng control has obtained the business security capability certification of the ICT Institute
- In JS, string and array are converted to each other (I) -- the method of converting string into array
猜你喜欢

C how to set two columns comboboxcolumn in DataGridView to bind a secondary linkage effect of cascading events

guava:Collections. The collection created by unmodifiablexxx is not immutable

Why do job hopping take more than promotion?

Set up a time server

50 commonly used numpy function explanations, parameters and usage examples

数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
![Happy sound 2[sing.2]](/img/ca/1581e561c427cb5b9bd5ae2604b993.jpg)
Happy sound 2[sing.2]

Enhance network security of kubernetes with cilium

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

Summary of cross partition scheme
随机推荐
The relationship between root and coefficient of quadratic equation with one variable
PostgreSQL 修改数据库用户的密码
KDD 2022 | realize unified conversational recommendation through knowledge enhanced prompt learning
Hill | insert sort
Replace Internet TV set-top box application through digital TV and broadband network
[Digital IC manual tearing code] Verilog automatic beverage machine | topic | principle | design | simulation
Nodejs tutorial let's create your first expressjs application with typescript
Acdreamoj1110 (multiple backpacks)
SQL:存储过程和触发器~笔记
[go][转载]vscode配置完go跑个helloworld例子
Why do job hopping take more than promotion?
MySQL - transaction details
[go][reprint]vscode run a HelloWorld example after configuring go
Ravendb starts -- document metadata
Search map website [quadratic] [for search map, search fan, search book]
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
npm run dev启动项目报错 document is not defined
guava:Collections.unmodifiableXXX创建的collection并不immutable
Guava: three ways to create immutablexxx objects
1292_FreeROS中vTaskResume()以及xTaskResumeFromISR()的实现分析