Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Sponsors


File http-comments-displayer

Script types: portrule
Categories: discovery, safe
Download: http://nmap.org/svn/scripts/http-comments-displayer.nse

User Summary

Extracts and outputs HTML and JavaScript comments from HTTP responses.

Script Arguments

http-comments-displayer.singlepages

Some single pages to check for comments. For example, {"/", "/wiki"}. Default: nil (crawler mode on)

http-comments-displayer.context

declares the number of chars to extend our final strings. This is useful when we need to to see the code that the comments are referring to. Default: 0, Maximum Value: 50

httpspider.doscraping, httpspider.maxdepth, httpspider.maxpagecount, httpspider.noblacklist, httpspider.url, httpspider.useheadfornonwebfiles, httpspider.withindomain, httpspider.withinhost

See the documentation for the httpspider library.

http.max-cache-size, http.max-pipeline, http.pipeline, http.useragent

See the documentation for the http library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

nmap -p80 --script http-comments-displayer.nse <host>

This scripts uses patterns to extract HTML comments from HTTP
responses and writes these to the command line.

Script Output

PORT   STATE SERVICE REASON
80/tcp open  http    syn-ack
| http-comments-displayer:
|     Path: /
|     Line number: 214
|     Comment:
|         <!-- This needs fixing. -->
|
|     Path: /register.php
|     Line number: 15
|     Comment:
|_        /* We should avoid the hardcoding here */

Requires


Author: George Chatzisofroniou

License: Same as Nmap--See http://nmap.org/book/man-legal.html

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault