Sha256: 0bdfe1d85fe1e5e647539749f5ea7a92c1251606d6dfe8452fdb30f1d6b2ac76
Contents?: true
Size: 1.5 KB
Versions: 5
Compression:
Stored size: 1.5 KB
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 Browser class Javascript class TaintTracer class Frame # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class CalledFunction # @return [String, nil] # Source of the function. attr_accessor :source # @return [String] # Name of the function. attr_accessor :name # @return [Array] # Arguments passed to the relevant function. attr_accessor :arguments def initialize( options = {} ) options.my_symbolize_keys(false).each do |k, v| send( "#{k}=", v ) end end def signature_arguments return if !signature signature.match( /\((.*)\)/ )[1].split( ',' ).map(&:strip) end def signature return if !@source @source.match( /function\s*(.*?)\s*\{/m )[1] end def to_h instance_variables.inject({}) do |h, iv| h[iv.to_s.gsub('@', '').to_sym] = instance_variable_get( iv ) h end end alias :to_hash :to_h def hash to_h.hash end def ==( other ) hash == other.hash end def to_rpc_data to_h end def self.from_rpc_data( data ) new data end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems