Class: Intrigue::Ident::Check::Webmin

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

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor =>"Webmin",
      :product =>"MiniServ",
      :match_details => "server header",
      :match_type => :content_headers,
      :references => [],
      :match_content => /server: MiniServ/,
      :version => nil,
      :dynamic_version => lambda {|x| _first_header_capture(x,/server: MiniServ\/(.*)/)},
      :examples => ["http://158.85.208.126:8080"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTU4Ljg1LjIwOC4xMjY6ODA4MA=="],
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor =>"Webmin",
      :product =>"Webmin",
      :match_details => "page title",
      :match_type => :content_body,
      :references => [],
      :match_content => /<title>Login to Webmin/,
      :version => nil,
      :examples => ["http://158.85.208.126:8080"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTU4Ljg1LjIwOC4xMjY6ODA4MA=="],
      :paths => ["#{url}"]
    }
  ]
end