Sha256: bea7d9ec69625fd53e84149c02539dc1f3c2ec8a518eb5c2ff46b4daf76fe378

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 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.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

9 entries across 9 versions & 1 rubygems

Version Path
cms_scanner-0.0.37.12 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.11 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.10 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.9 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.8 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.7 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.6 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.5 app/finders/interesting_findings/fantastico_fileslist.rb
cms_scanner-0.0.37.4 app/finders/interesting_findings/fantastico_fileslist.rb