当前位置:网站首页>Record the process of cleaning up mining viruses
Record the process of cleaning up mining viruses
2022-07-06 21:48:00 【Run, Deng DengZi】
Catalog
One 、 The phenomenon
The website is down , Check that the background service is down , Unable to restart normally .
Two 、 Handle
1. View memory usage
Without starting any services , Memory has been basically exhausted :
free -h
total used free shared buff/cache available
Mem: 7.6G 6.4G 581M 401M 690M 640M
Swap: 0B 0B 0B
2. Check the resource usage of each process
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
...
notice xmrig Taking up resources .
3. View scheduled tasks
ls /var/spool/cron/
root
see root The contents of the document :
vi root
30 21 * * * bash /usr/local/apache-tomcat-8.0.46/bin/.moneroocean/miner.sh
see .moneroocean Files under directory :
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. Delete file
cd /var/spool/cron/
rm -rf *
cd /usr/local/apache-tomcat-8.0.46/bin/
rm -rf .moneroocean/
5. kill xmrig process
Find all xmrig Process and kill :
ps -ef | grep xmrig
6. Restart the service
It's best to restart the server and then restart the service , At this time, the service is normal .
边栏推荐
- Description of web function test
- Efficiency tool +wps check box shows the solution to the sun problem
- Binary tree node at the longest distance
- [Li Kou brush questions] 32 Longest valid bracket
- MySQL removes duplicates according to two fields
- PostgreSQL 修改数据库用户的密码
- Absolute primes (C language)
- 技术分享 | 抓包分析 TCP 协议
- SDL2来源分析7:演出(SDL_RenderPresent())
- R language for text mining Part4 text classification
猜你喜欢

Vit paper details

The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop

Absolute primes (C language)

JS method to stop foreach

Internet News: Geely officially acquired Meizu; Intensive insulin purchase was fully implemented in 31 provinces

抖音將推獨立種草App“可頌”,字節忘不掉小紅書?

Aggregate function with key in spark

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

MPLS experiment
![[Li Kou brush questions] 32 Longest valid bracket](/img/51/1ce4f9e8517dba214ec82b6567c923.png)
[Li Kou brush questions] 32 Longest valid bracket
随机推荐
c语言char, wchar_t, char16_t, char32_t和字符集的关系
SDL2来源分析7:演出(SDL_RenderPresent())
El table table - get the row and column you click & the sort of El table and sort change, El table column and sort method & clear sort clearsort
50 commonly used numpy function explanations, parameters and usage examples
14年本科毕业,转行软件测试,薪资13.5K
guava:创建immutableXxx对象的3种方式
Technology sharing | packet capturing analysis TCP protocol
基于InsightFace的高精度人脸识别,可直接对标虹软
【力扣刷题】一维动态规划记录(53零钱兑换、300最长递增子序列、53最大子数组和)
FZU 1686 龙之谜 重复覆盖
在最长的距离二叉树结点
Four common ways and performance comparison of ArrayList de duplication (jmh performance analysis)
抖音將推獨立種草App“可頌”,字節忘不掉小紅書?
Yuan Xiaolin: safety is not only a standard, but also Volvo's unchanging belief and pursuit
Univariate cubic equation - relationship between root and coefficient
Summary of cross partition scheme
JS学习笔记-OO创建怀疑的对象
【力扣刷题】32. 最长有效括号
Absolute primes (C language)
Dialogue with Jia Yangqing, vice president of Alibaba: pursuing a big model is not a bad thing