1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-12 16:36:34 +00:00

Better Amazon associates match: allow '?'.

This commit is contained in:
david
2011-03-31 20:32:56 +00:00
parent d4dd71261d
commit 6fdca6e01f

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"] = "href=\"http://www.amazon.com/[^\"]*[\\?&;]tag=(?P<id>\\w+-\\d+)",
}
portrule = shortport.http