Module: Arachni::Element::Link::Capabilities::Submittable

Includes:
Capabilities::Submittable
Defined in:
lib/arachni/element/link/capabilities/submittable.rb

Overview

Extends Capabilities::Submittable with Arachni::Element::Link-specific functionality.

Author:

  • Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Instance Method Summary collapse

Methods included from Capabilities::Submittable

#action, #dup, #http, #http_request, #id, #initialize, #method, #method=, #platforms, #submit, #to_h

Instance Method Details

#action=(url) ⇒ Object

Note:

Will Options.rewrite the `url`.

Note:

Will update the #inputs from the URL query.



26
27
28
29
30
31
# File 'lib/arachni/element/link/capabilities/submittable.rb', line 26

def action=( url )
    rewritten   = uri_parse( url ).rewrite
    self.inputs = rewritten.query_parameters.merge( self.inputs || {} )

    super rewritten.without_query
end