class Intrigue::Ident::Check::Mikrotik

Public Instance Methods

generate_checks(url) click to toggle source
# File lib/checks/mikrotik.rb, line 6
def generate_checks(url)
  [
    {
      :type => "other",
      :vendor =>"Mikrotik",
      :product =>"RouterOS",
      :match_details => "page title",
      :match_type => :content_body,
      :match_content =>  /<title>RouterOS router configuration page/,
      :version => nil,
      :dynamic_version => lambda { |x| _first_body_capture(x,/<h1>RouterOS v(.*?)<\/h1>/) },
      :examples => ["http://91.211.58.34:80"],
      :verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vOTEuMjExLjU4LjM0Ojgw"],
      :paths => ["#{url}"]
    }
  ]
end