Sha256: 2bdb8c023dbec66d6202ea40c69e968aa3d9dbf633f27288b3405f28178f25cb

Contents?: true

Size: 676 Bytes

Versions: 25

Compression:

Stored size: 676 Bytes

Contents

module CMSScanner
  module Finders
    module InterestingFindings
      # FantasticoFileslist finder
      class FantasticoFileslist < Finder
        # @return [ String ] The url of the fantastico_fileslist.txt file
        def url
          target.url('fantastico_fileslist.txt')
        end

        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          res = NS::Browser.get(url)

          return unless res&.code == 200 && !res.body.empty?
          return unless res.headers && res.headers['Content-Type'] =~ %r{\Atext/plain}

          NS::FantasticoFileslist.new(url, confidence: 70, found_by: found_by)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.9 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.8 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.7 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.6 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.5 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.4 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.3 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.2 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.1 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.41.0 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.40.3 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.40.2 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.40.1 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.40 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.39.4 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.39.3 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.39.2 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.39.1 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.39.0 app/finders/interesting_findings/fantastico_fileslist.rb