V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
frjalex
V2EX  ›  分享创造

Bash 的 Shell Shock 漏洞一键修复脚本 ShellShockFixer

  •  
  •   frjalex · 2014-09-27 19:11:41 +08:00 · 3373 次点击
    这是一个创建于 3523 天前的主题,其中的信息可能已经有所发展或是发生改变。
    修复Bash漏洞“ShellShock"最简单的办法:全自动脚本ShellShockFixer,能修复CentOS, OpenSuSE, Debian 6/7, Aliyun Linux, Ubuntu等主流系统的漏洞.
    原理:1.根据官方最新补丁修复 2.用chmod 3.用iptables.具体参见源码。
    作者:Alex Fang
    Lisence: GPLv2.
    BUG: frjalex#gmail.com
    下载: https://github.com/frjalex/useful/blob/master/shellshockfixer.sh
    4 条回复    2014-09-29 09:30:00 +08:00
    bcxx
        1
    bcxx  
       2014-09-27 19:30:32 +08:00
    这 bash 写出了 bat 的味道啊……
    LazyZhu
        2
    LazyZhu  
       2014-09-27 21:15:05 +08:00
    呵呵,这么多 if...elif... 不是一般都用 case...in... 么
    iptux
        3
    iptux  
       2014-09-27 21:16:53 +08:00
    if ErrorLevel 11 XXX
    if ErrorLevel 9 XXX
    if ErrorLevel 8 XXX
    ...

    好久不写,好像是这样的
    xiaket
        4
    xiaket  
       2014-09-29 09:30:00 +08:00
    最后那个`chmod o-x bash`看不太懂.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4945 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 05:49 · PVG 13:49 · LAX 22:49 · JFK 01:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.