lib/cms_scanner/target/scope.rb
def in_scope_uris(res, xpath = '//@href|//@src|//@data-src')
      found = []

      uris_from_page(res, xpath) do |uri, tag|
        next unless in_scope?(uri)

        yield uri, tag if block_given?

        found << uri
      end

      found
    end
def in_scope_uris(res, xpath = '//@href|//@src|//@data-src')
      found = []

      uris_from_page(res, xpath) do |uri, tag|
        next unless in_scope?(uri)

        yield uri, tag if block_given?

        found << uri
      end

      found
    end
@param [ Typhoeus::Response ] res
 @param [ String ] xpath

 @yield [ Addressable::URI, Nokogiri::XML::Element ] The in scope url and its associated tag

 @return [ Array<Addressable::URI> ] The in scope absolute URIs detected in the response's body