Sha256: 37748796e305033a8741fefef2c4c47db833095fa3887fb7a36dfbc18ebd5d73
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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 Sink # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Base # @return [Array<Frame>] # Stacktrace. attr_accessor :trace def initialize( options = {} ) options.my_symbolize_keys(false).each do |k, v| send( "#{k}=", v ) end @trace ||= [] end def to_h instance_variables.inject({}) do |h, iv| h[iv.to_s.gsub('@', '').to_sym] = instance_variable_get( iv ) h end.merge( trace: trace.map(&:to_h)) end def to_hash to_h end def hash to_h.hash end def ==( other ) hash == other.hash end def to_rpc_data to_h.merge( trace: trace.map(&:to_rpc_data) ) end def self.from_rpc_data( data ) data['trace'] = data['trace'].map { |d| Frame.from_rpc_data( d ) } new data end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | lib/arachni/browser/javascript/taint_tracer/sink/base.rb |
arachni-1.5 | lib/arachni/browser/javascript/taint_tracer/sink/base.rb |