Sha256: f931593e1f0979a619d8260922d77bac990296af90e73ab79d7e994338b7770e
Contents?: true
Size: 685 Bytes
Versions: 18
Compression:
Stored size: 685 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.length > 0 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
18 entries across 18 versions & 1 rubygems