module CMSScanner::Target::Server::IIS

Some IIS specific implementation

Public Instance Methods

directory_listing?(path = nil, params = {}) click to toggle source

@param [ String ] path @param [ Hash ] params The request params

@return [ Boolean ] true if url(path) has the directory

listing enabled, false otherwise
# File lib/cms_scanner/target/server/iis.rb, line 21
def directory_listing?(path = nil, params = {})
  res = NS::Browser.get(url(path), params)

  res.code == 200 && res.body =~ %r{<H1>#{uri.host} - /} ? true : false
end
server(_path = nil, _params = {}) click to toggle source

@param [ String ] path @param [ Hash ] params The request params

@return [ Symbol ] :IIS

# File lib/cms_scanner/target/server/iis.rb, line 12
def server(_path = nil, _params = {})
  :IIS
end