Nmap Development mailing list archives
[NSE] http-errors.nse
From: George Chatzisofroniou <sophron () latthi com>
Date: Wed, 14 Aug 2013 04:58:04 +0300
The attached script crawls through the website and returns any pages that respond with an HTTP error code (400 and above). The results are sorted by error code. You can run it as follows: ./nmap -p80 -n -Pn --script http-errors 83.212.115.76 -d1 (Feel free to test it on this server. It's a VM of mine i've set up for Nmap research.) And you will see this: PORT STATE SERVICE REASON 80/tcp open http syn-ack | http-errors: | Spidering limited to: maxpagecount=40; withinhost=83.212.115.76 | Found the following error pages: | | Error Code: 404 | http://localhost/foo.html | | Error Code: 500 |_ http://localhost/bar.php There is also the 'errcodes' option to define the error codes you are interested in. For example, to return only the 404 pages: ./nmap -p80 -n -Pn --script http-errors --script-args 'http-errors.errcodes={404}' localhost -d1 Hope you like it, -- George Chatzisofroniou
Attachment:
http-errors.nse
Description:
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] http-errors.nse George Chatzisofroniou (Aug 13)
- Re: [NSE] http-errors.nse George Chatzisofroniou (Aug 22)