Sha256: 6232b521cc4b43ac1793b1fd25963c5d282176cfd0d773a327052baed2950815

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 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 && res.code == 200 && res.body.length > 0
          return unless res.headers && res.headers['Content-Type'] =~ /\Atext\/plain/

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cms_scanner-0.0.23 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.22 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.21 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.20 app/finders/interesting_findings/fantastico_fileslist.rb