Sha256: 1574e3ba5ddb703507d9857352d074e7481dcc30f4ee81475dfa500c249ae7ba
Contents?: true
Size: 1.62 KB
Versions: 5
Compression:
Stored size: 1.62 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 class Arachni::Reporters::XML # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::VectorCollector < Arachni::Plugin::Formatter def run( xml ) results.each do |url, vectors| vectors.each do |vector| xml.vector { xml.class_ vector['class'] xml.type vector['type'] xml.url Arachni::Reporters::XML.replace_nulls( vector['url'] ) xml.action Arachni::Reporters::XML.replace_nulls( vector['action'] ) if vector['source'] xml.source Arachni::Reporters::XML.replace_nulls( vector['source'] ) end if vector['method'] xml.method_ vector['method'] end if vector['inputs'] xml.inputs { vector['inputs'].each do |k, v| xml.input( name: Arachni::Reporters::XML.replace_nulls( k ), value: Arachni::Reporters::XML.replace_nulls( v ) ) end } end } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems