class Intrigue::Ident::Check::Apache
Public Instance Methods
generate_checks(url)
click to toggle source
# File lib/checks/apache.rb, line 6 def generate_checks(url) [ { :type => "application", :vendor => "Apache", :product =>"Ambari", :match_details =>"page title", :version => nil, :match_type => :content_body, :match_content => /<title>Ambari<\/title>/i, :examples => ["http://12.42.205.114:8080"], :verify => "aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTIuNDIuMjA1LjExNDo4MDgw", :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product =>"Apache", :match_details =>"Apache web server - server header - with versions", :version => nil, :match_type => :content_headers, :match_content => /server:\ Apache[\s|\/]+[0-9]+/i, :dynamic_version => lambda { |x| _first_header_capture(x,/[s|S]erver:\s?Apache[\s|\/](.*)$/,["Apache","/","(Ubuntu)"]) }, :examples => [ "http://124.6.226.249:8081" ], :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product =>"Apache", :match_details =>"Apache web server - server header - no version", :version => nil, :match_type => :content_headers, :match_content => /server:\ Apache$/i, :examples => [ "http://207.87.195.160:80" ], :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product =>"Coyote", :match_details =>"Apache coyote application server - server header", :version => nil, :match_type => :content_headers, :match_content => /server:\ Apache-Coyote/i, :dynamic_version => lambda { |x| _first_header_capture(x,/server: Apache-Coyote\/(.*)/i) }, :examples => [ "http://15.224.214.203:80" ], :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product =>"Sling", :references => ["https://sling.apache.org/"], :match_details =>"Apache Sling™ is a framework for RESTful web-applications based on an extensible content tree. also note that this may be related to apache experience manager", :version => nil, :match_type => :content_body, :match_content => /<address>Apache Sling<\/address>/i, :examples => [ "https://assets.microncpg.com/" ], :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product => "Tomcat", :match_details =>"Tomcat Application Server", :match_type => :content_body, :version => 6, :match_content => /<title>Tomcat 6 Welcome Page/, :examples => [ "https://15.139.248.81:443" ], :paths => ["#{url}"] }, { :type => "application", :vendor => "Apache", :product => "Tomcat", :match_details =>"Tomcat Application Server", :match_type => :content_body, :version => nil, :match_content => /<title>Apache Tomcat/, :dynamic_version => lambda{ |x| _first_body_capture(x, /<title>(.*)<\/title>/,["Apache Tomcat/"," - Error report"]) }, :examples => [ "http://15.216.136.207:80", "http://15.224.214.203:80" ], :paths => ["#{url}"] } ] end