class Arachni::Browser::Javascript::TaintTracer::Frame::CalledFunction
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Attributes
arguments[RW]
@return [Array]
Arguments passed to the relevant function.
name[RW]
@return [String]
Name of the function.
source[RW]
@return [String, nil]
Source of the function.
Public Class Methods
from_rpc_data( data )
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 66 def self.from_rpc_data( data ) new data end
new( options = {} )
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 30 def initialize( options = {} ) options.my_symbolize_keys(false).each do |k, v| send( "#{k}=", v ) end end
Public Instance Methods
==( other )
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 58 def ==( other ) hash == other.hash end
hash()
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 54 def hash to_h.hash end
signature()
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 41 def signature return if !@source @source.match( /function\s*(.*?)\s*\{/m )[1] end
signature_arguments()
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 36 def signature_arguments return if !signature signature.match( /\((.*)\)/ )[1].split( ',' ).map(&:strip) end
to_h()
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 46 def to_h instance_variables.inject({}) do |h, iv| h[iv.to_s.gsub('@', '').to_sym] = instance_variable_get( iv ) h end end
Also aliased as: to_hash
to_rpc_data()
click to toggle source
# File lib/arachni/browser/javascript/taint_tracer/frame/called_function.rb, line 62 def to_rpc_data to_h end