Sha256: 3b2ed886649eb5c88adccd7f7d5aa1422dd87a97a886d77b1fdf33e795ea278d
Contents?: true
Size: 678 Bytes
Versions: 15
Compression:
Stored size: 678 Bytes
Contents
module CMSScanner module Finders module InterestingFile # FantasticoFileslist finder class FantasticoFileslist < Finder # @return [ String ] The url of the fantastico_fileslist.txt file def url target.url('fantastico_fileslist.txt') end # @return [ InterestingFile ] 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'] =~ /\Atext\/plain/ NS::FantasticoFileslist.new(url, confidence: 100, found_by: found_by) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems