diff --git a/spec/fixtures/db/dynamic_finders.yml b/spec/fixtures/db/dynamic_finders.yml index 8b82a08b..ad061f56 100644 --- a/spec/fixtures/db/dynamic_finders.yml +++ b/spec/fixtures/db/dynamic_finders.yml @@ -40,6 +40,11 @@ wordpress: path: wp-links-opml.php pattern: !ruby/regexp /\Agenerator="wordpress\/(?\d+\.[\.\d]+)"\z/i version: true + PixelCodeJavascript: + class: JavascriptVar + xpath: //script[not(@src) and contains(., "fbq")] + pattern: !ruby/regexp /wordpress\-(?\d+\.[\.\d]+)\-/i + version: true MostCommonWpIncludesQueryParameterInHomepage: class: QueryParameter xpath: //link[contains(@href,"wp-includes/")]/@href|//script[contains(@src,"wp-includes/")]/@src diff --git a/spec/fixtures/dynamic_finders/expected.yml b/spec/fixtures/dynamic_finders/expected.yml index a9da7709..6a404112 100644 --- a/spec/fixtures/dynamic_finders/expected.yml +++ b/spec/fixtures/dynamic_finders/expected.yml @@ -41,6 +41,11 @@ wordpress: found_by: Opml Generator (Aggressive Detection) interesting_entries: - 'http://wp.lab/wp-links-opml.php, Match: ''generator="WordPress/4.0"''' + PixelCodeJavascript: + number: 4.0 + found_by: Pixel Code Javascript (Passive Detection) + interesting_entries: + - 'http://wp.lab/, Match: ''wordpress-4.0-''' MostCommonWpIncludesQueryParameterInHomepage: number: 3.8.1 found_by: Most Common Wp Includes Query Parameter In Homepage (Passive Detection) diff --git a/spec/fixtures/dynamic_finders/wp_version/javascript_var_passive_all.html b/spec/fixtures/dynamic_finders/wp_version/javascript_var_passive_all.html index 7019ca31..c991412c 100644 --- a/spec/fixtures/dynamic_finders/wp_version/javascript_var_passive_all.html +++ b/spec/fixtures/dynamic_finders/wp_version/javascript_var_passive_all.html @@ -179,3 +179,18 @@ tvc_smd={"tvc_wcv":"3.5.7","tvc_wpv":"3.8.1","tvc_eev":"2.1.6","tvc_cnf":{"t_ee" ga( 'limelightTracker.set', 'userId', ':' ); ga( 'limelightTracker.send', 'pageview' ); + + + + + +