changed some colors

This commit is contained in:
Christian Mehlmauer
2014-09-22 23:34:42 +02:00
parent b19696090f
commit 7f9e178f75
8 changed files with 83 additions and 67 deletions

View File

@@ -6,19 +6,19 @@ class WpItem
# @return [ Void ]
def output(verbose = false)
puts
puts "#{green('[+]')} Name: #{self}" #this will also output the version number if detected
puts "#{info('[+]')} Name: #{self}" #this will also output the version number if detected
puts " | Location: #{url}"
#puts " | WordPress: #{wordpress_url}" if wordpress_org_item?
puts " | Readme: #{readme_url}" if has_readme?
puts " | Changelog: #{changelog_url}" if has_changelog?
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?
puts "#{warning('[!]')} Directory listing is enabled: #{url}" if has_directory_listing?
puts "#{warning('[!]')} An error_log file has been found: #{error_log_url}" if has_error_log?
additional_output(verbose) if respond_to?(:additional_output)
if version.nil? && vulnerabilities.length > 0
puts
puts "#{amber('[+]')} We could not determine a version so all vulnerabilities are printed out"
puts "#{warning('[+]')} We could not determine a version so all vulnerabilities are printed out"
end
vulnerabilities.output