wnTKYg长期占用CPU资源(linux)

第一步:堵住木马入侵的源头

由于一开始使用redis并没有设置密码,导致wnTKYg被植入。修补该漏洞的方法(在redis.conf中设置):

①.修改默认端口

# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
port 端口号

②.增加密码(我只做了这一步)

################################## SECURITY ###################################
# Require clients to issue AUTH <PASSWORD> before processing any other
# commands.  This might be useful in environments in which you do not trust
# others with access to the host running redis-server.
#
# This should stay commented out for backward compatibility and because most
# people do not need auth (e.g. they run their own servers).
#
# Warning: since Redis is pretty fast an outside user can try up to
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
requirepass xxxxx密码xxxx

③.绑定只允许访问的ip地址

################################## NETWORK #####################################
# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using
# the "bind" configuration directive, followed by one or more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
bind 127.0.0.1 ::1


第二步:删除唤醒wnTKYg木马程序的源文件,再杀掉wnTKYg进程

①使用    find / -name wnTKYg*    查找文件,发现存在/tmp/wnTKYg,将其删除

②使用    ps -aux|grep ddg    查找带有 ddg.数字 的进程,将其关闭 kill -9 pid

并且将/tmp目录下有的ddg文件夹删除(我的情况没有发现ddg残余的ddg文件)

③查找wnTKYg运行的pid,杀掉进程kill -9 pid

另有其他的解决思路,我是参考一下帖子完成了wnTKYg挖矿木马的清除

http://blog.sina.com.cn/s/blog_c08907b10102wyyl.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值