class Intrigue::Ident::Check::Webmin
Public Instance Methods
generate_checks(url)
click to toggle source
# 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