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