Sha256: 03f75a54153e6d1abb7d5a037108607583863abbdf9092d098ee65ba11fb6808

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

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

require_relative '../base'
require_relative 'with_node'
require_relative 'with_dom'

module Arachni
module Element::Capabilities

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module DOMOnly
    include Arachni::Element::Capabilities::WithAuditor
    include Arachni::Element::Capabilities::Inputtable
    include Arachni::Element::Capabilities::WithNode
    include Arachni::Element::Capabilities::WithDOM

    attr_accessor :method

    def initialize( options )
        super options

        @method   = options[:method]

        self.inputs = options[:inputs]
        @default_inputs = self.inputs.dup.freeze
    end

    def mutation?
        false
    end

    def coverage_id
        "#{type}:#{dom.coverage_id}"
    end

    def coverage_hash
        coverage_id.persistent_hash
    end

    def id
        "#{type}:#{dom.id}"
    end

    def dup
        super.tap do |o|
            o.method = self.method
        end
    end

    def type
        self.class.type
    end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/element/capabilities/dom_only.rb
arachni-1.6.1.2 lib/arachni/element/capabilities/dom_only.rb
arachni-1.6.1.1 lib/arachni/element/capabilities/dom_only.rb
arachni-1.6.1 lib/arachni/element/capabilities/dom_only.rb
arachni-1.6.0 lib/arachni/element/capabilities/dom_only.rb