Sha256: 4d9640b10700afd9ea99a7bd923381b48950a572fbc074b6cf2dbcad6e626887

Contents?: true

Size: 1006 Bytes

Versions: 5

Compression:

Stored size: 1006 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

module Arachni
class BrowserCluster
module Jobs
class TaintTrace

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class EventTrigger < DOMExploration::EventTrigger

    require_relative 'event_trigger/result'

    def run
        browser.javascript.taint       = forwarder.taint
        browser.javascript.custom_code = forwarder.injector

        browser.on_new_page_with_sink { |page| save_result( page: page ) }

        super
    end

    def to_s
        "#<#{self.class}:#{object_id} @resource=#{@resource} " +
            "@event=#{@event.inspect} @element=#{@element.inspect} " +
            "@forwarder=#{@forwarder} time=#{@time} timed_out=#{timed_out?}>"
    end

end

end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb
arachni-1.6.1.2 lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb
arachni-1.6.1.1 lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb
arachni-1.6.1 lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb
arachni-1.6.0 lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb