Class: Arachni::Parser::Extractors::Frames

Inherits:
Base show all
Defined in:
components/path_extractors/frames.rb

Overview

Extracts paths from frames.

Author:

Instance Attribute Summary

Attributes inherited from Base

#downcased_html, #html, #parser

Instance Method Summary collapse

Methods inherited from Base

#check_for?, #document, #initialize

Constructor Details

This class inherits a constructor from Arachni::Parser::Extractors::Base

Instance Method Details

#runObject



14
15
16
17
18
# File 'components/path_extractors/frames.rb', line 14

def run
    return [] if !check_for?( 'frame' )

    document.nodes_by_names( ['frame', 'iframe'] ).map { |n| n['src'] }
end