Sha256: 6bd7a8340ffad919438cde372a662365c67180d0ae9c2ee865c4f4ed21822804
Contents?: true
Size: 1.52 KB
Versions: 5
Compression:
Stored size: 1.52 KB
Contents
=begin Arachni Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni require Arachni::Options.instance.dir['reports'] + '/xml/buffer.rb' module Reports class XML module PluginFormatters # # XML formatter for the results of the CookieCollector plugin # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class CookieCollector < Arachni::Plugin::Formatter include Buffer def run start_tag( 'cookie_collector' ) simple_tag( 'description', @description ) start_tag( 'results' ) @results.each_with_index { |result, i| start_tag( 'response' ) simple_tag( 'time', result[:time].to_s ) simple_tag( 'url', result[:res]['effective_url'] ) start_tag( 'cookies' ) result[:cookies].each_pair{ |name, value| add_cookie( name, value ) } end_tag( 'cookies' ) end_tag( 'response' ) } end_tag( 'results' ) end_tag( 'cookie_collector' ) return buffer( ) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems