ok here is a version that will only filter the IP out and will not show the port
bannerfilter.txt "IIS"
banner.txt example
[HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Content-Location:
http://10.0.0.20/Default.htm Date: Wed, 21 Apr 2004 14:47:12 GMT Content-Type: text/html Accept-]
[HTTP/1.1 200 OK Server: Microsoft-IIS/5.1 Content-Location:
http://10.0.0.21/Default.htm Date: Wed, 21 Apr 2004 14:47:12 GMT Content-Type: text/html Accept-]
testing banner 12.153.104.49:80 yehaha MS IIS 5.0
112.153.104.49:80 MS IIS 5.1
12.153.104.149:80 MS IIS 4.0
output.txt example
10.0.0.20
10.0.0.21
12.153.104.49
112.153.104.49
12.153.104.149
the advanced syntax for multible searchstrings for the banner can still be used
example:
to match APACHE and PHP: banner2.pl "APACHE.*PHP"
to match IIS or APACHE: banner2.pl "IIS|APACHE"