如果执行这个代码env -i X='() { (a)=>\' bash -c 'echo date' ; cat echo
出现如下类似内容,就需要继续升级了bash: X: line 1: syntax error near unexpected token `='
bash: X: line 1: `'
bash: error importing function definition for `X'
Sat Sep 27 09:34:37 CST 2014
更新方法:
centos(redhat、fedora)版yum ﹣y update bash
debian(ubuntu)版:apt-get -y install --only-upgrade bash
执行完以后的再执行第一条命令,结果会变成如下:date
cat: echo: No such file or directory
发表回复