From c24ee89b16a2b9e02f871df932cbcd90ebb014d7 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 8 Jan 2014 23:34:35 +0100 Subject: [PATCH] Some modifications in the output of an item --- lib/common/models/wp_item/output.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/common/models/wp_item/output.rb b/lib/common/models/wp_item/output.rb index 1701831b..8feefbb4 100644 --- a/lib/common/models/wp_item/output.rb +++ b/lib/common/models/wp_item/output.rb @@ -9,9 +9,11 @@ class WpItem puts " | Name: #{self}" #this will also output the version number if detected puts " | Location: #{url}" #puts " | WordPress: #{wordpress_url}" if wordpress_org_item? - puts ' | Directory listing enabled: Yes' if has_directory_listing? puts " | Readme: #{readme_url}" if has_readme? puts " | Changelog: #{changelog_url}" if has_changelog? + puts " |" + puts " | " + red('[!]') + " Directory listing is enabled: #{url}" if has_directory_listing? + puts " | " + red('[!]') + " An error_log file has been found: #{error_log_url}" if has_error_log? if respond_to?(:additional_output) additional_output(verbose) @@ -19,9 +21,6 @@ class WpItem vulnerabilities.output - if has_error_log? - puts ' | ' + red('[!]') + " An error_log file has been found : #{error_log_url}" - end end end