Nmap Development mailing list archives

[PATCH] Allow comments in exclusion file


From: Tom Sellers <nmap () fadedcode net>
Date: Wed, 29 Jul 2009 17:40:29 -0500

Hello all,

        The attached patch modifies targets.cc so that comments will be allowed
in the files specified by the --exculsionfile parameter.

If the patch is accepted the following comment styles would be permitted:

1.  Lines beginning with a '#', for example:

        #This IP address is for the server with the broken app,
        #input validation is your friend...


2.  Comments prefixed with '#' that occur after the IP address or network specification.
    For example:

        196.168.1.1     #home router with limited space on the firewall state table

This functionality will make keeping track of an ongoing and/or lengthy exclusion
list feasible.


This patch should probably be carefully reviewed by someone with more coding experience
that I.

Thanks,

Tom
        

Attachment: comments.in.exclusion.file.txt
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: