centos7解决病毒入侵 getty

首先使用top命令查看

在这里插入图片描述

找到文件地址

在这里插入图片描述

查看是否有自启动服务

在这里插入图片描述

关闭、停止、删除

在这里插入图片描述

tmp 病毒文件删除

在这里插入图片描述

清除标记
[root@host-192-168-0-66 bin]# chattr -ia /tmp/newsvc.sh
[root@host-192-168-0-66 bin]# chattr -ia /tmp/redis2
[root@host-192-168-0-66 bin]# chattr -ia /tmp/svc*
[root@host-192-168-0-66 bin]# chattr -ia /tmp/kdevtmpfsi
删除
[root@host-192-168-0-66 bin]# rm -rf /tmp/newsvc.sh
[root@host-192-168-0-66 bin]# rm -rf /tmp/redis2
[root@host-192-168-0-66 bin]# rm -rf /tmp/svc*
[root@host-192-168-0-66 bin]# rm -rf /tmp/kdevtmpfsi

进程隐藏工具删除

在这里插入图片描述
在这里插入图片描述

常见病毒服务查看删除

find / -name networkSync.service
# 关闭自启动
systemctl disable networkSync.service
# 停止服务
systemctl stop networkSync.service
# 删除服务
rm -f /etc/systemd/system/networkSync.service




find / -name javasgs_miner.service
# 关闭自启动
systemctl disable javasgs_miner.service
# 停止服务
systemctl stop javasgs_miner.service
# 删除服务
rm -f /etc/systemd/system/javasgs_miner.service


find / -name c3pool_miner.service
# 关闭自启动
systemctl disable c3pool_miner.service
# 停止服务
systemctl stop c3pool_miner.service
# 删除服务
rm -f /etc/systemd/system/c3pool_miner.service



find / -name quotaoff.service
# 关闭自启动
systemctl disable quotaoff.service
# 停止服务
systemctl stop quotaoff.service
# 删除服务
rm -f /etc/systemd/system/quotaoff.service

rm -f /usr/lib/systemd/system/quotaoff.service



find / -name telescope
# 关闭自启动
systemctl disable telescope.service
# 停止服务
systemctl stop telescope.service
# 删除服务
rm -f /etc/systemd/system/telescope.service




find / -name javs
# 关闭自启动
systemctl disable javs.service
# 停止服务
systemctl stop telescope.service
# 删除服务
rm -f /etc/systemd/system/telescope.service
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值