Class: Arachni::Browser::Javascript::TaintTracer

Inherits:
Proxy
  • Object
show all
Defined in:
lib/arachni/browser/javascript/taint_tracer.rb,
lib/arachni/browser/javascript/taint_tracer/frame.rb,
lib/arachni/browser/javascript/taint_tracer/sink/base.rb,
lib/arachni/browser/javascript/taint_tracer/sink/data_flow.rb,
lib/arachni/browser/javascript/taint_tracer/sink/execution_flow.rb,
lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb

Overview

Provides access to the ‘TaintTracer` JS interface, with extra Ruby-side functionality to format results of functions that return sink data.

Author:

Defined Under Namespace

Classes: Frame, Sink

Instance Attribute Summary

Attributes inherited from Proxy

#javascript, #stub

Instance Method Summary collapse

Methods inherited from Proxy

#call, #function?, #js_object, #respond_to?

Constructor Details

#initialize(javascript) ⇒ TaintTracer

Returns a new instance of TaintTracer.

Parameters:



26
27
28
# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 26

def initialize( javascript )
    super javascript, 'TaintTracer'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Arachni::Browser::Javascript::Proxy

Instance Method Details

#classObject



67
68
69
# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 67

def class
    TaintTracer
end

#data_flow_sinksArray<Sink::DataFlow>

Returns JS data flow sink data.

Returns:



# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 30

#debugging_dataArray<Sink::ExecutionFlow>

Returns JS debugging information.

Returns:



# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 46

#execution_flow_sinksArray<Sink::ExecutionFlow>

Returns JS execution flow sink data.

Returns:



# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 51

#flush_data_flow_sinksArray<Sink::DataFlow>

Returns and clears #data_flow_sinks.

Returns:



40
41
42
43
44
# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 40

%w(data_flow_sinks flush_data_flow_sinks).each do |m|
    define_method m do
        prepare_data_flow_sink_data call( m )
    end
end

#flush_execution_flow_sinksArray<Sink::ExecutionFlow>

Returns and clears #execution_flow_sinks.

Returns:



61
62
63
64
65
# File 'lib/arachni/browser/javascript/taint_tracer.rb', line 61

%w(debugging_data execution_flow_sinks flush_execution_flow_sinks).each do |m|
    define_method m do
        prepare_execution_flow_sink_data call( m )
    end
end