Sha256: ebe4eff96ec2549ff47ef81349026f041df48c5618947a80f38f7984932150a4
Contents?: true
Size: 606 Bytes
Versions: 19
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true module CMSScanner module Finders module InterestingFindings # FantasticoFileslist finder class FantasticoFileslist < Finder # @return [ InterestingFinding ] def aggressive(_opts = {}) path = 'fantastico_fileslist.txt' res = target.head_and_get(path) return if res.body.strip.empty? return unless res.headers && res.headers['Content-Type'] =~ %r{\Atext/plain} NS::Model::FantasticoFileslist.new(target.url(path), confidence: 70, found_by: found_by) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems