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

Inherits:
ResourceExploration::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 ResourceExploration::EventTrigger

#element, #event

Attributes inherited from ResourceExploration

#resource

Attributes inherited from Arachni::BrowserCluster::Job

#browser, #forwarder

Instance Method Summary collapse

Methods inherited from ResourceExploration

#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

Constructor Details

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

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}>"
end