当前位置:网站首页>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 .
边栏推荐
- 50 commonly used numpy function explanations, parameters and usage examples
- Quick news: the flybook players' conference is held online; Wechat payment launched "education and training service toolbox"
- guava:Collections.unmodifiableXXX创建的collection并不immutable
- PostgreSQL 安装gis插件 CREATE EXTENSION postgis_topology
- Univariate cubic equation - relationship between root and coefficient
- Microsoft technology empowerment position - February course Preview
- 红杉中国,刚刚募资90亿美元
- Divide candy
- Shake Sound poussera l'application indépendante de plantation d'herbe "louable", les octets ne peuvent pas oublier le petit livre rouge?
- c语言char, wchar_t, char16_t, char32_t和字符集的关系
猜你喜欢
Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
PostgreSQL 修改数据库用户的密码
The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
Sparkshuffle process and Mr shuffle process
Uni app app half screen continuous code scanning
Why rdd/dataset is needed in spark
[Digital IC manual tearing code] Verilog automatic beverage machine | topic | principle | design | simulation
[Li Kou brush questions] 32 Longest valid bracket
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
Four common ways and performance comparison of ArrayList de duplication (jmh performance analysis)
随机推荐
ACdreamoj1110(多重背包)
Run the deep network on PI and Jetson nano, and the program is killed
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
[Li Kou brushing questions] one dimensional dynamic planning record (53 change exchanges, 300 longest increasing subsequence, 53 largest subarray and)
R语言做文本挖掘 Part4文本分类
Five wars of Chinese Baijiu
string的底层实现
Fastjson parses JSON strings (deserialized to list, map)
Caching strategies overview
C语言:#if、#def和#ifndef综合应用
50 commonly used numpy function explanations, parameters and usage examples
Checkpoint of RDD in spark
技术分享 | 抓包分析 TCP 协议
50个常用的Numpy函数解释,参数和使用示例
Z function (extended KMP)
Set up a time server
MySQL - 事务(Transaction)详解
c语言char, wchar_t, char16_t, char32_t和字符集的关系
Microsoft technology empowerment position - February course Preview
JS学习笔记-OO创建怀疑的对象