Class: Intrigue::Ident::Check::Allegro

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

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "Allegro",
      :product => "RomPager",
      :version => nil,
      :dynamic_version => lambda { |x|
        _first_header_capture(x,/Allegro-Software-RomPager\/(.*)$/i)
      },
      :examples => [ "http://120.127.142.126" ],
      :match_type => :content_headers,
      :match_content =>  /server:\ Allegro-Software-RomPager/,
      :match_details =>"server header",
      :paths => ["#{url}"]
    }
  ]
end