Sha256: 1de90631f88f34cc8676d9adadba712bbef88c410377b4bc61f10c0fb35d5005
Contents?: true
Size: 981 Bytes
Versions: 6
Compression:
Stored size: 981 Bytes
Contents
=begin Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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 # XML formatter for the results of the CookieCollector plugin # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::CookieCollector < Arachni::Plugin::Formatter def run( xml ) results.each_with_index do |result, i| xml.entry { xml.time Time.parse( result['time'] ).xmlschema xml.url result['response']['url'] xml.cookies { result['cookies'].each do |name, value| xml.cookie( name: name, value: value ) end } } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems