Nmap Development mailing list archives

Re: [NSE] Script for HTML generator meta tag


From: Michael Kohl <citizen428 () gmail com>
Date: Thu, 12 Jan 2012 10:49:09 +0100

On Thu, Jan 12, 2012 at 2:22 AM, Brendan Coles <bcoles () gmail com> wrote:
I've had a lot of success matching meta generator tags using the (somewhat
messy) regex used in WhatWeb:

/<meta[^>^=]+content[\s]*=[\s]*["|']?([^"^'^>]+)["|']?[^>^=]+name[\s]*=[\s]*["|']?generator["|']?/i

/<meta[^>^=]+name[\s]*=[\s]*["|']?generator["|']?[^>^=]+content[\s]*=[\s]*["|']?([^"^'^>]+)["|']?/i

I've attached a list of example meta generators used by many web
applications (taken from WhatWeb plugins) which may be of some use.

Thanks for that! My primary goal where the big CMSs like Wordpress,
Typo3, Drupal etc. and my current pattern seems to work for all of
them. I'll try to come up with a better pattern for a future version
and will use your hints and example list for that.

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


Current thread: