cd /usr/lib/cgi-bin
# sudo hello.sh
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "Hello world!"
# chmod u+x is not sufficient
chmod 755 hello.sh
# per ssh
msfconsole
search shellshock
etc.
cd /usr/lib/cgi-bin
# sudo hello.sh
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "Hello world!"
# chmod u+x is not sufficient
chmod 755 hello.sh
# per ssh
msfconsole
search shellshock
etc.