Class: Intrigue::Ident::Check::Telerik

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/telerik.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#generate_checks(url) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/checks/telerik.rb', line 6

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "Telerik",
      :product => "Sitefinity",
      :match_details => "Telerik Sitefinity is an ASP.NET 2.0-based Content Management System (CMS)",
      :url => "https://www.sitefinity.com/",
      :version => nil,
      :match_type => :content_body,
      :match_content =>  /Telerik.Sitefinity.Resources/,
      :dynamic_version => lambda { |x|  _first_body_capture x, /Version=([\d\.]+),/ },
      :examples => [],
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor => "Telerik",
      :product => "Sitefinity",
      :match_details => "Detect Telerik via a meta generator tag",
      :url => "https://www.sitefinity.com/",
      :version => nil,
      :match_type => :content_body,
      :match_content =>  /<meta\ name=\"Generator\"\ content=\"Sitefinity/,
      :dynamic_version => lambda { |x| _first_body_capture x, /<meta name=\"Generator\" content=\"Sitefinity (.*?)\ \/><link/ },
      :examples => [],
      :paths => ["#{url}"]
    }
  ]
end