Sha256: 0d46d71fdd171b0aac87c3df94ae30ad8fc015ce1bdade4fca75f81ee5960b7f
Contents?: true
Size: 1.37 KB
Versions: 7
Compression:
Stored size: 1.37 KB
Contents
=begin Copyright 2010-2014 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 # # Creates a plain text report of the audit. # # It redirects stdout to an outfile and runs the default (stdout.rb) report. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # # @version 0.2.1 # class Arachni::Reporters::Text < Arachni::Reporter::Base def run load Arachni::Options.paths.reporters + 'stdout.rb' print_line print_status "Dumping audit results in #{outfile}." # redirect output streams to the outfile stdout = $stdout.dup stderr = $stderr.dup $stderr = $stdout = File.new( outfile, 'w' ) Reporters::Stdout.new( report, options ).run $stdout.close $stdout = stdout.dup $stderr = stderr.dup print_status 'Done!' end def self.info { name: 'Text', description: %q{Exports the audit results as a text (.txt) file.}, author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>', version: '0.2.1', options: [ Options.outfile( '.txt' ) ] } end end
Version data entries
7 entries across 7 versions & 1 rubygems