{"id":2785,"date":"2016-03-30T22:57:51","date_gmt":"2016-03-30T22:57:51","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=2785"},"modified":"2016-03-30T22:57:51","modified_gmt":"2016-03-30T22:57:51","slug":"shocker-tool-find-exploit-servers-vulnerable-shellshock","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=2785","title":{"rendered":"Shocker &#8211; A tool to find and exploit servers vulnerable to Shellshock"},"content":{"rendered":"<p>Shocker is a tool to find and exploit servers vulnerable to Shellshock<br \/>\nReleased as open source by NCC Group Plc &#8211; https:\/\/www.nccgroup.trust\/<br \/>\nDeveloped By: Tom Watson, tom [dot] watson [at] nccgroup [dot] trust<br \/>\nhttps:\/\/github.com\/nccgroup\/shocker<br \/>\nHelp Text<br \/>\nusage:<\/p>\n<pre>shocker.py\n-h, --help show this help message and exit\n--Host HOST, -H HOST A target hostname or IP address\n--file FILE, -f FILE File containing a list of targets\n--port PORT, -p PORT The target port number (default=80)\n--exploit EXPLOIT, -e EXPLOIT Command to execute (default=\/bin\/uname -a)\n--cgi CGI, -c CGI Single CGI to check (e.g. \/cgi-bin\/test.cgi)\n--proxy PROXY A BIT BROKEN RIGHT NOW Proxy to be used in the form 'ip:port'\n--ssl, -s Use SSL (default=False)\n--threads THREADS, -t THREADS Maximum number of threads (default=10, max=100)\n--verbose, -v Be verbose in output\n<\/pre>\n<p>Usage Examples<\/p>\n<pre>.\/shocker.py -H 127.0.0.1 -e \"\/bin\/cat \/etc\/passwd\" -c \/cgi-bin\/test.cgi\n<\/pre>\n<p>Scans for http:\/\/127.0.0.1\/cgi-bin\/test.cgi and, if found, attempts to cat \/etc\/passwd<\/p>\n<pre>.\/shocker.py -H www.example.com -p 8001 -s\n<\/pre>\n<p>Scan www.example.com on port 8001 using SSL for all scripts in cgi_list and attempts the default exploit for any found<\/p>\n<pre>.\/shocker.py -f .\/hostlist\n<\/pre>\n<p>Scans all hosts listed in the file .\/hostlist with the default options<br \/>\n<strong>Dependencies<\/strong><br \/>\nPython 2.7+<br \/>\n<strong>Todo:<\/strong><\/p>\n<ul>\n<li>Identify and respond correctly to HTTP\/200 response &#8211; false positives &#8211; Low priority\/hassle<\/li>\n<li>Implement curses for *nix systems &#8211; For the whole application or only psuedo terminal? &#8211; Low\u00a0priority\/prettiness.<\/li>\n<li>Thread the initial host check now that multiple targets are supported (and could be make this bit time consuming)<\/li>\n<li>Change verbose to integer value &#8211; quiet, normal, verbose, debug?<\/li>\n<li>Add option to skip initial host checks for the sake of speed?<\/li>\n<li>Add a summary of results before exiting<\/li>\n<li>Save results to a file? Format?<\/li>\n<li>Eventually the idea is to include multiple possible vectors but currently only one is checked.<\/li>\n<li>Add Windows and *nix colour support &#8211; Low priority\/prettiness<\/li>\n<li>Add a timeout in interactive mode for commands which don&#8217;t return, e.g. \/bin\/cat \/dev\/zero<\/li>\n<li>Prettify &#8211; Low priority\/pretinness (obviously)<\/li>\n<li>Add support for scanning and explointing SSH and SMTP https:\/\/isc.sans.edu\/diary\/Shellshock+via+SMTP\/18879<\/li>\n<li>Add SOCKS proxy support, potentially using https:\/\/github.com\/rpicard\/socksonsocks\/ from Rober Picard<\/li>\n<li>Other stuff. Probably.<\/li>\n<\/ul>\n<p>&nbsp;<br \/>\n<a href=\"https:\/\/github.com\/nccgroup\/shocker\" target=\"_blank\" rel=\"noopener noreferrer\">Download Shocker at Github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shocker is a tool to find and exploit servers vulnerable to Shellshock Released as open source by NCC Group Plc &#8211; https:\/\/www.nccgroup.trust\/ Developed By: Tom Watson, tom [dot] watson [at] nccgroup [dot] trust https:\/\/github.com\/nccgroup\/shocker Help Text usage: shocker.py -h, &#8211;help show this help message and exit &#8211;Host HOST, -H HOST A target hostname or IP<\/p>\n","protected":false},"author":1,"featured_media":2786,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[662,587,615],"tags":[669,670,304],"class_list":["post-2785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-auditing-tool","category-shell","category-vulnerability-scanner","tag-shellsshock","tag-shocker","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2785"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2785\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}