Expanded Amazon pattern for http-affiliate-id from Daniel Miller.

This commit is contained in:
david 2011-04-01 06:17:15 +00:00
parent a37ea09b90
commit 1d9bf8bef5

View file

@ -38,7 +38,7 @@ require 'stdnse'
local AFFILIATE_PATTERNS = {
["Google Analytics ID"] = "(?P<id>UA-[0-9]{6,9}-[0-9]{1,2})",
["Google Adsense ID"] = "(?P<id>pub-[0-9]{16,16})",
["Amazon Associates ID"] = "href=\"http://www.amazon.com/[^\"]*[\\?&;]tag=(?P<id>\\w+-\\d+)",
["Amazon Associates ID"] = "http://(www\.amazon\.com/[^\"']*[\\?&;]tag|rcm\.amazon\.com/[^\"']*[\\?&;]t)=(?P<id>\\w+-\\d+)",
}
portrule = shortport.http