Class: Arachni::BrowserCluster::Jobs::TaintTrace::EventTrigger

Inherits:
DOMExploration::EventTrigger show all
Defined in:
lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb,
lib/arachni/browser_cluster/jobs/taint_trace/event_trigger/result.rb

Overview

Author:

Defined Under Namespace

Classes: Result

Instance Attribute Summary

Attributes inherited from DOMExploration::EventTrigger

#element, #event

Attributes inherited from DOMExploration

#resource

Attributes inherited from Arachni::BrowserCluster::Job

#args, #browser, #forwarder, #time

Instance Method Summary collapse

Methods inherited from DOMExploration

#clean_copy, #dup, #initialize

Methods inherited from Arachni::BrowserCluster::Job

#==, #clean_copy, #configure_and_run, #dup, #forward, #forward_as, #hash, #id, #initialize, #never_ending=, #never_ending?, #save_result, #timed_out!, #timed_out?

Constructor Details

This class inherits a constructor from Arachni::BrowserCluster::Jobs::DOMExploration

Instance Method Details

#runObject


19
20
21
22
23
24
25
26
# File 'lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb', line 19

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

#to_sObject


28
29
30
31
32
# File 'lib/arachni/browser_cluster/jobs/taint_trace/event_trigger.rb', line 28

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