Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
如何檢測 Unix /Linux 的 Bash Shell 漏洞 – unethost無限空間虛擬主機 技術分享部落格

如何檢測 Unix /Linux 的 Bash Shell 漏洞

接續上一篇文章: Unix /Linux 的Bash Shell 出現重大漏洞

請在 ssh shell 裡:

vim test.sh

test.sh 的內容如下:

#!/bin/bash
echo test begin.
env x='() { :;}; echo vulnerable' bash -c 'echo test done.'

存檔後,接著

chmod 755 test.sh

./test.sh

如果已經更新成功的os,就會顯示下列:

test begin.
test done.

 

ssh