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

2014-09-27 19:11:41 +08:00
 frjalex
修复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
3418 次点击
所在节点    分享创造
4 条回复
bcxx
2014-09-27 19:30:32 +08:00
这 bash 写出了 bat 的味道啊……
LazyZhu
2014-09-27 21:15:05 +08:00
呵呵,这么多 if...elif... 不是一般都用 case...in... 么
iptux
2014-09-27 21:16:53 +08:00
if ErrorLevel 11 XXX
if ErrorLevel 9 XXX
if ErrorLevel 8 XXX
...

好久不写,好像是这样的
xiaket
2014-09-29 09:30:00 +08:00
最后那个`chmod o-x bash`看不太懂.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/136038

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX