Some modifications in the output of an item

This commit is contained in:
Peter
2014-01-08 23:34:35 +01:00
parent a73c2d7292
commit c24ee89b16

View File

@@ -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