Sha256: 2217a018b7dd2eb2a38ca0600a7e8332e5214ecbf5193007739675feb23004a1

Contents?: true

Size: 779 Bytes

Versions: 52

Compression:

Stored size: 779 Bytes

Contents

module CMSScanner
  class Target < WebSite
    module Server
      # Some IIS specific implementation
      module IIS
        # @param [ String ] path
        # @param [ Hash ] params The request params
        #
        # @return [ Symbol ] :IIS
        def server(_path = nil, _params = {})
          :IIS
        end

        # @param [ String ] path
        # @param [ Hash ] params The request params
        #
        # @return [ Boolean ] true if url(path) has the directory
        #                          listing enabled, false otherwise
        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
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.9 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.8 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.7 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.6 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.5 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.4 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.3 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.2 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.1 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.41.0 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.40.3 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.40.2 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.40.1 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.40 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.39.4 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.39.3 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.39.2 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.39.1 lib/cms_scanner/target/server/iis.rb
cms_scanner-0.0.39.0 lib/cms_scanner/target/server/iis.rb