Class: Arachni::Parser::Extractors::DataURL

Inherits:
Base
  • Object
show all
Defined in:
components/path_extractors/data_url.rb

Overview

Extracts paths from data-url attributes.

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/data_url.rb', line 14

def run
    return [] if !html || !check_for?( 'data-url' )

    html.scan( /data-url\s*=\s*['"]?(.*?)?['"]?[\s>]/ )
end