Sha256: 7e7d2c00a5f79616e9e7e969b38dcf282e744ee93bca1577992003666679bb68
Contents?: true
Size: 613 Bytes
Versions: 32
Compression:
Stored size: 613 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']&.start_with?('text/plain') NS::Model::FantasticoFileslist.new(target.url(path), confidence: 70, found_by: found_by) end end end end end
Version data entries
32 entries across 32 versions & 3 rubygems