小赖子的英国生活和资讯

BASH 脚本 防止 iptablex 攻击

阅读 桌面完整版

影响: 大量往外发包, 导致网络瘫痪, 在电脑删除后, 还会被定时感染. 临时快速解决方法:先抓包分析那台服务器发包严重, 然后查看进程, 如果是IptabLex和IptabLes可以用此脚本, 2秒执行一次.

1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
while [ 1 ]
do
  ps -ef |grep -i ipt
  pkill -9  /boot/.IptabLex
  pkill -9  /boot/.IptabLes
  pkill -9  IptabLe
  pkill -9  Iptab
  find / -name '*Ipt*' -exec rm -fr {} \;
sleep 2
done;
#!/bin/bash
while [ 1 ]
do
  ps -ef |grep -i ipt
  pkill -9  /boot/.IptabLex
  pkill -9  /boot/.IptabLes
  pkill -9  IptabLe
  pkill -9  Iptab
  find / -name '*Ipt*' -exec rm -fr {} \;
sleep 2
done;

如何被攻击: 用SSH2开发的web项目 struts2.0一下的有漏洞,可以从页面直接向后台输入代码, 升级struts2.3以上 可以避免 该攻击.

英文: https://helloacm.com/bash-script-to-get-rid-of-iptablex-virus/

强烈推荐

微信公众号: 小赖子的英国生活和资讯 JustYYUK

阅读 桌面完整版
Exit mobile version