Class: Intrigue::Ident::Check::Plesk

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/plesk.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
36
# File 'lib/checks/plesk.rb', line 6

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor =>"Plesk",
      :product =>"Plesk",
      :match_details => "page title",
      :match_type => :content_body,
      :references => ["https://en.wikipedia.org/wiki/Plesk"],
      :match_content =>  /<title>Plesk (.*?)<\/title>/,
      :version => nil,
      :dynamic_version => lambda { |x| _first_body_capture(x,/<title>Plesk (.*?)<\/title>/) },
      :examples => ["https://158.85.134.112:8443"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwczovLzE1OC44NS4xMzQuMTEyOjg0NDM="],
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor =>"Plesk",
      :product =>"Plesk",
      :match_details => "server header",
      :match_type => :content_headers,
      :references => ["https://en.wikipedia.org/wiki/Plesk"],
      :match_content => /server: sw-cp-server/,
      :version => nil,
      :examples => ["https://158.85.134.112:8443"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwczovLzE1OC44NS4xMzQuMTEyOjg0NDM="],
      :paths => ["#{url}"]
    }
  ]
end