Sha256: c9646836a465c3d2b7bd342f4f154bbb44a471ab6719693435f011b3aa43aaec
Contents?: true
Size: 1.4 KB
Versions: 5
Compression:
Stored size: 1.4 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 TimingAttacks plugin. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class TimingAttacks < Arachni::Plugin::Formatter include Arachni::Reports::Buffer def run start_tag( 'timeout_notice' ) simple_tag( 'description', @description ) start_tag( 'results' ) @results.each { |issue| add_issue( issue ) } end_tag( 'results' ) end_tag( 'timeout_notice' ) end def add_issue( issue ) __buffer( "<issue hash=\"#{issue['hash'].to_s}\" " + " index=\"#{issue['index'].to_s}\" name=\"#{issue['name']}\"" + " url=\"#{issue['url']}\" element=\"#{issue['elem']}\" " + " variable=\"#{issue['var']}\" method=\"#{issue['method']}\" />" ) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems