Lab
Vulnerability scanning with Nmap NSE scripts. List the HTTP-related scripts, then run one against a target.
Nmap Scripts
ls -la /usr/share/nmap/scripts/ | grep http
```text
root@attackdefense:~# ls -al /usr/share/nmap/scripts/ | grep http
-rw-r--r-- 1 root root 2153 Jan 9 2019 http-adobe-coldfusion-apsa1301.nse
-rw-r--r-- 1 root root 5111 Jan 9 2019 http-affiliate-id.nse
-rw-r--r-- 1 root root 1950 Jan 9 2019 http-apache-negotiation.nse
-rw-r--r-- 1 root root 4499 Jan 9 2019 http-apache-server-status.nse
-rw-r--r-- 1 root root 1805 Jan 9 2019 http-aspnet-debug.nse
-rw-r--r-- 1 root root 3961 Jan 9 2019 http-auth-finder.nse
-rw-r--r-- 1 root root 3187 Jan 9 2019 http-auth.nse
-rw-r--r-- 1 root root 2893 Jan 9 2019 http-avaya-ipoffice-users.nse
-rw-r--r-- 1 root root 4374 Jan 9 2019 http-awstatstotals-exec.nse
-rw-r--r-- 1 root root 6871 Jan 9 2019 http-axis2-dir-traversal.nse
-rw-r--r-- 1 root root 5484 Jan 9 2019 http-backup-finder.nse
-rw-r--r-- 1 root root 6387 Jan 9 2019 http-barracuda-dir-traversal.nse
-rw-r--r-- 1 root root 2038 Jan 9 2019 http-bigip-cookie.nse
-rw-r--r-- 1 root root 4950 Jan 9 2019 http-brute.nse
-rw-r--r-- 1 root root 4414 Jan 9 2019 http-cakephp-version.nse
-rw-r--r-- 1 root root 4927 Jan 9 2019 http-chrono.nse
-rw-r--r-- 1 root root 1695 Jan 9 2019 http-cisco-anyconnect.nse
-rw-r--r-- 1 root root 5520 Jan 9 2019 http-coldfusion-subzero.nse
-rw-r--r-- 1 root root 4150 Jan 9 2019 http-comments-displayer.nse
-rw-r--r-- 1 root root 7251 Jan 9 2019 http-config-backup.nse
-rw-r--r-- 1 root root 5139 Jan 9 2019 http-cookie-flags.nse
-rw-r--r-- 1 root root 2566 Jan 9 2019 http-cors.nse
-rw-r--r-- 1 root root 13759 Jan 9 2019 http-cross-domain-policy.nse
-rw-r--r-- 1 root root 5418 Jan 9 2019 http-csrf.nse
-rw-r--r-- 1 root root 1676 Jan 9 2019 http-date.nse
-rw-r--r-- 1 root root 14893 Jan 9 2019 http-default-accounts.nse
-rw-r--r-- 1 root root 4288 Jan 9 2019 http-devframework.nse
-rw-r--r-- 1 root root 2529 Jan 9 2019 http-dlink-backdoor.nse
-rw-r--r-- 1 root root 4452 Jan 9 2019 http-dombased-xss.nse
-rw-r--r-- 1 root root 13877 Jan 9 2019 http-domino-enum-passwords.nse
-rw-r--r-- 1 root root 2256 Jan 9 2019 http-drupal-enum-users.nse
-rw-r--r-- 1 root root 6915 Jan 9 2019 http-drupal-enum.nse
-rw-r--r-- 1 root root 20601 Jan 9 2019 http-enum.nse
-rw-r--r-- 1 root root 3347 Jan 9 2019 http-errors.nse
-rw-r--r-- 1 root root 20528 Jan 9 2019 http-exif-spider.nse
-rw-r--r-- 1 root root 5199 Jan 9 2019 http-favicon.nse
-rw-r--r-- 1 root root 4451 Jan 9 2019 http-feed.nse
-rw-r--r-- 1 root root 9035 Jan 9 2019 http-fetch.nse
-rw-r--r-- 1 root root 11077 Jan 9 2019 http-fileupload-exploiter.nse
-rw-r--r-- 1 root root 21333 Jan 9 2019 http-form-brute.nse
-rw-r--r-- 1 root root 8218 Jan 9 2019 http-form-fuzzer.nse
-rw-r--r-- 1 root root 2739 Jan 9 2019 http-frontpage-login.nse
-rw-r--r-- 1 root root 2307 Jan 9 2019 http-generator.nse
-rw-r--r-- 1 root root 12100 Jan 9 2019 http-git.nse
-rw-r--r-- 1 root root 3195 Jan 9 2019 http-gitweb-projects-enum.nse
-rw-r--r-- 1 root root 3353 Jan 9 2019 http-google-malware.nse
-rw-r--r-- 1 root root 11947 Jan 9 2019 http-grep.nse
-rw-r--r-- 1 root root 1825 Jan 9 2019 http-headers.nse
-rw-r--r-- 1 root root 6973 Jan 9 2019 http-huawei-hg5xx-vuln.nse
-rw-r--r-- 1 root root 2780 Jan 9 2019 http-icloud-findmyiphone.nse
-rw-r--r-- 1 root root 4085 Jan 9 2019 http-icloud-sendmsg.nse
-rw-r--r-- 1 root root 6068 Jan 9 2019 http-iis-short-name-brute.nse
-rw-r--r-- 1 root root 7893 Jan 9 2019 http-iis-webdav-vuln.nse
-rw-r--r-- 1 root root 2540 Jan 9 2019 http-internal-ip-disclosure.nse
-rw-r--r-- 1 root root 5422 Jan 9 2019 http-joomla-brute.nse
-rw-r--r-- 1 root root 5463 Jan 9 2019 http-jsonp-detection.nse
-rw-r--r-- 1 root root 2621 Jan 9 2019 http-litespeed-sourcecode-download.nse
-rw-r--r-- 1 root root 6116 Jan 9 2019 http-ls.nse
-rw-r--r-- 1 root root 3241 Jan 9 2019 http-majordomo2-dir-traversal.nse
-rw-r--r-- 1 root root 2838 Jan 9 2019 http-malware-host.nse
-rw-r--r-- 1 root root 3704 Jan 9 2019 http-mcmp.nse
-rw-r--r-- 1 root root 6871 Jan 9 2019 http-method-tamper.nse
-rw-r--r-- 1 root root 7211 Jan 9 2019 http-methods.nse
-rw-r--r-- 1 root root 2726 Jan 9 2019 http-mobileversion-checker.nse
-rw-r--r-- 1 root root 4461 Jan 9 2019 http-ntlm-info.nse
-rw-r--r-- 1 root root 8269 Jan 9 2019 http-open-proxy.nse
-rw-r--r-- 1 root root 4756 Jan 9 2019 http-open-redirect.nse
-rw-r--r-- 1 root root 7023 Jan 9 2019 http-passwd.nse
-rw-r--r-- 1 root root 7046 Jan 9 2019 http-php-version.nse
-rw-r--r-- 1 root root 5779 Jan 9 2019 http-phpmyadmin-dir-traversal.nse
-rw-r--r-- 1 root root 5822 Jan 9 2019 http-phpself-xss.nse
-rw-r--r-- 1 root root 3487 Jan 9 2019 http-proxy-brute.nse
-rw-r--r-- 1 root root 1930 Jan 9 2019 http-put.nse
-rw-r--r-- 1 root root 3270 Jan 9 2019 http-qnap-nas-info.nse
-rw-r--r-- 1 root root 2175 Jan 9 2019 http-referer-checker.nse
-rw-r--r-- 1 root root 9694 Jan 9 2019 http-rfi-spider.nse
-rw-r--r-- 1 root root 2737 Jan 9 2019 http-robots.txt.nse
-rw-r--r-- 1 root root 2084 Jan 9 2019 http-robtex-reverse-ip.nse
-rw-r--r-- 1 root root 2518 Jan 9 2019 http-robtex-shared-ns.nse
-rw-r--r-- 1 root root 15956 Jan 9 2019 http-security-headers.nse
-rw-r--r-- 1 root root 3057 Jan 9 2019 http-server-header.nse
-rw-r--r-- 1 root root 5551 Jan 9 2019 http-shellshock.nse
-rw-r--r-- 1 root root 5344 Jan 9 2019 http-sitemap-generator.nse
-rw-r--r-- 1 root root 5464 Jan 9 2019 http-slowloris-check.nse
-rw-r--r-- 1 root root 11129 Jan 9 2019 http-slowloris.nse
-rw-r--r-- 1 root root 9404 Jan 9 2019 http-sql-injection.nse
-rw-r--r-- 1 root root 8451 Jan 9 2019 http-stored-xss.nse
-rw-r--r-- 1 root root 4018 Jan 9 2019 http-svn-enum.nse
-rw-r--r-- 1 root root 4360 Jan 9 2019 http-svn-info.nse
-rw-r--r-- 1 root root 2345 Jan 9 2019 http-title.nse
-rw-r--r-- 1 root root 6026 Jan 9 2019 http-tplink-dir-traversal.nse
-rw-r--r-- 1 root root 1919 Jan 9 2019 http-trace.nse
-rw-r--r-- 1 root root 5294 Jan 9 2019 http-traceroute.nse
-rw-r--r-- 1 root root 6469 Jan 9 2019 http-trane-info.nse
-rw-r--r-- 1 root root 5549 Jan 9 2019 http-unsafe-output-escaping.nse
-rw-r--r-- 1 root root 5403 Jan 9 2019 http-useragent-tester.nse
-rw-r--r-- 1 root root 4550 Jan 9 2019 http-userdir-enum.nse
-rw-r--r-- 1 root root 5911 Jan 9 2019 http-vhosts.nse
-rw-r--r-- 1 root root 10770 Jan 9 2019 http-virustotal.nse
-rw-r--r-- 1 root root 2078 Jan 9 2019 http-vlcstreamer-ls.nse
-rw-r--r-- 1 root root 4111 Jan 9 2019 http-vmware-path-vuln.nse
-rw-r--r-- 1 root root 3291 Jan 9 2019 http-vuln-cve2006-3392.nse
-rw-r--r-- 1 root root 6584 Jan 9 2019 http-vuln-cve2009-3960.nse
-rw-r--r-- 1 root root 2957 Jan 9 2019 http-vuln-cve2010-0738.nse
-rw-r--r-- 1 root root 5638 Jan 9 2019 http-vuln-cve2010-2861.nse
-rw-r--r-- 1 root root 4544 Jan 9 2019 http-vuln-cve2011-3192.nse
-rw-r--r-- 1 root root 5894 Jan 9 2019 http-vuln-cve2011-3368.nse
-rw-r--r-- 1 root root 4403 Jan 9 2019 http-vuln-cve2012-1823.nse
-rw-r--r-- 1 root root 4831 Jan 9 2019 http-vuln-cve2013-0156.nse
-rw-r--r-- 1 root root 2867 Jan 9 2019 http-vuln-cve2013-6786.nse
-rw-r--r-- 1 root root 5009 Jan 9 2019 http-vuln-cve2013-7091.nse
-rw-r--r-- 1 root root 2945 Jan 9 2019 http-vuln-cve2014-2126.nse
-rw-r--r-- 1 root root 3334 Jan 9 2019 http-vuln-cve2014-2127.nse
-rw-r--r-- 1 root root 3193 Jan 9 2019 http-vuln-cve2014-2128.nse
-rw-r--r-- 1 root root 2979 Jan 9 2019 http-vuln-cve2014-2129.nse
-rw-r--r-- 1 root root 14240 Jan 9 2019 http-vuln-cve2014-3704.nse
-rw-r--r-- 1 root root 4519 Jan 9 2019 http-vuln-cve2014-8877.nse
-rw-r--r-- 1 root root 7772 Jan 9 2019 http-vuln-cve2015-1427.nse
-rw-r--r-- 1 root root 3427 Jan 9 2019 http-vuln-cve2015-1635.nse
-rw-r--r-- 1 root root 4372 Jan 9 2019 http-vuln-cve2017-1001000.nse
-rw-r--r-- 1 root root 2578 Jan 9 2019 http-vuln-cve2017-5638.nse
-rw-r--r-- 1 root root 5496 Jan 9 2019 http-vuln-cve2017-5689.nse
-rw-r--r-- 1 root root 5187 Jan 9 2019 http-vuln-cve2017-8917.nse
-rw-r--r-- 1 root root 2699 Jan 9 2019 http-vuln-misfortune-cookie.nse
-rw-r--r-- 1 root root 4225 Jan 9 2019 http-vuln-wnr1000-creds.nse
-rw-r--r-- 1 root root 5422 Jan 9 2019 http-waf-detect.nse
-rw-r--r-- 1 root root 19339 Jan 9 2019 http-waf-fingerprint.nse
-rw-r--r-- 1 root root 5766 Jan 9 2019 http-webdav-scan.nse
-rw-r--r-- 1 root root 5061 Jan 9 2019 http-wordpress-brute.nse
-rw-r--r-- 1 root root 10866 Jan 9 2019 http-wordpress-enum.nse
-rw-r--r-- 1 root root 4612 Jan 9 2019 http-wordpress-users.nse
-rw-r--r-- 1 root root 2653 Jan 9 2019 http-xssed.nse
-rw-r--r-- 1 root root 2437 Jan 9 2019 ip-https-discover.nse
-rw-r--r-- 1 root root 4872 Jan 9 2019 membase-http-info.nse
-rw-r--r-- 1 root root 5564 Jan 9 2019 riak-http-info.nse
```
Shellshock NSE Script with Args
nmap -sV --script=http-shellshock --script-args="http-shellshock.uri=/gettime.cgi" 192.147.191.3