Class: Intrigue::Ident::Check::Vmware

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

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "VMWare",
      :tags => ["tech:hypervisor"],
      :product =>"ESXi",
      :match_details =>"unique page string",
      :version => nil,
      :match_type => :content_body,
      :match_content => /document.write\(\"<title>\"\ \+\ ID_EESX_Welcome/,
      :paths => ["#{url}"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTIuNDIuMjA1LjEyNzo4MA=="],
      :examples => ["http://12.42.205.127:80"]
    },
    {
      :type => "application",
      :vendor => "VMWare",
      :tags => ["tech:hypervisor"],
      :product =>"Horizon",
      :match_details =>"page title",
      :version => nil,
      :match_type => :content_body,
      :match_content =>  /<title>VMware Horizon/,
      :paths => ["#{url}"]
    }
  ]
end