Sha256: 1c53de2bcbfb18a380820a8fed24c32aea12140600ad000a355d92d786556857
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
module CMSScanner module Finders module InterestingFiles # Robots.txt finder class RobotsTxt < Finder # @return [ String ] The url of the robots.txt file def url target.url('robots.txt') end # @return [ InterestingFile ] def aggressive(_opts = {}) res = NS::Browser.get(url) return unless res && res.code == 200 && res.body =~ /(?:user-agent|(?:dis)?allow):/i NS::RobotsTxt.new(url, confidence: 100, found_by: found_by) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems