Sha256: b6c602d6dba106796afbc501e5eff585770d4cee46ea25b27148479372137447
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 Bytes
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end # Extract paths from HTML comments. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Arachni::Parser::Extractors::Comments < Arachni::Parser::Extractors::Base def run return [] if !check_for?( '<!--' ) document.nodes_by_class( Arachni::Parser::Nodes::Comment ).map do |comment| comment.value.scan( /(^|\s)(\/[\/a-zA-Z0-9%._-]+)/ ) end.flatten.select { |s| s.start_with? '/' } end end
Version data entries
5 entries across 5 versions & 1 rubygems