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