Update wpscan.rb

This commit is contained in:
Peter van der Laan
2013-10-11 15:43:32 +02:00
parent 2d3cfb2952
commit 27b6e15e11

View File

@@ -25,7 +25,7 @@ def main
end
if wpscan_options.version
puts "Current version is #{version}"
puts "Current version: #{version}"
exit(0)
end
@@ -65,7 +65,7 @@ def main
puts "Following redirection #{redirection}"
puts
else
puts "The remote host tried to redirect us to #{redirection}"
puts "The remote host tried to redirect us to: #{redirection}"
print 'Do you want follow the redirection ? [y/n] '
end
@@ -110,7 +110,7 @@ def main
puts
if wp_target.has_robots?
puts green('[+]') + " robots.txt available under '#{wp_target.robots_url}'"
puts green('[+]') + " robots.txt available under: '#{wp_target.robots_url}'"
wp_target.parse_robots_txt.each do |dir|
puts "#{green('[+]')} Interesting entry from robots.txt: #{dir}"
@@ -122,7 +122,7 @@ def main
end
if wp_target.has_full_path_disclosure?
puts red('[!]') + " Full Path Disclosure (FPD) in '#{wp_target.full_path_disclosure_url}'"
puts red('[!]') + " Full Path Disclosure (FPD) in: '#{wp_target.full_path_disclosure_url}'"
end
if wp_target.has_debug_log?
@@ -130,11 +130,11 @@ def main
end
wp_target.config_backup.each do |file_url|
puts red("[!] A wp-config.php backup file has been found '#{file_url}'")
puts red("[!] A wp-config.php backup file has been found in: '#{file_url}'")
end
if wp_target.search_replace_db_2_exists?
puts red("[!] searchreplacedb2.php has been found '#{wp_target.search_replace_db_2_url}'")
puts red("[!] searchreplacedb2.php has been found in: '#{wp_target.search_replace_db_2_url}'")
end
wp_target.interesting_headers.each do |header|
@@ -158,7 +158,7 @@ def main
end
if wp_target.has_xml_rpc?
puts green('[+]') + " XML-RPC Interface available under #{wp_target.xml_rpc_url}"
puts green('[+]') + " XML-RPC Interface available under: #{wp_target.xml_rpc_url}"
end
if wp_target.has_malwares?
@@ -184,7 +184,7 @@ def main
if wp_theme = wp_target.theme
puts
# Theme version is handled in #to_s
puts green('[+]') + " The WordPress theme in use: #{wp_theme}"
puts green('[+]') + " WordPress theme in use: #{wp_theme}"
wp_theme.output
end
@@ -194,7 +194,7 @@ def main
wp_plugins = WpPlugins.passive_detection(wp_target)
if !wp_plugins.empty?
puts "#{wp_plugins.size} plugins found :"
puts " | #{wp_plugins.size} plugins found:"
wp_plugins.output
else