Re-order output around slightly
This commit is contained in:
32
wpscan.rb
32
wpscan.rb
@@ -235,6 +235,18 @@ def main
|
|||||||
puts info("User-Agent: #{wpscan_options.user_agent}") if wpscan_options.verbose and wpscan_options.user_agent
|
puts info("User-Agent: #{wpscan_options.user_agent}") if wpscan_options.verbose and wpscan_options.user_agent
|
||||||
puts
|
puts
|
||||||
|
|
||||||
|
wp_target.interesting_headers.each do |header|
|
||||||
|
output = info('Interesting header: ')
|
||||||
|
|
||||||
|
if header[1].class == Array
|
||||||
|
header[1].each do |value|
|
||||||
|
puts output + "#{header[0]}: #{value}"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
puts output + "#{header[0]}: #{header[1]}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if wp_target.has_robots?
|
if wp_target.has_robots?
|
||||||
puts info("robots.txt available under: #{wp_target.robots_url}")
|
puts info("robots.txt available under: #{wp_target.robots_url}")
|
||||||
|
|
||||||
@@ -259,10 +271,6 @@ def main
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if wp_target.has_full_path_disclosure?
|
|
||||||
puts warning("Full Path Disclosure (FPD) in '#{wp_target.full_path_disclosure_url}': #{wp_target.full_path_disclosure_data}")
|
|
||||||
end
|
|
||||||
|
|
||||||
if wp_target.has_debug_log?
|
if wp_target.has_debug_log?
|
||||||
puts critical("Debug log file found: #{wp_target.debug_log_url}")
|
puts critical("Debug log file found: #{wp_target.debug_log_url}")
|
||||||
end
|
end
|
||||||
@@ -279,18 +287,6 @@ def main
|
|||||||
puts critical("emergency.php has been found in: #{wp_target.emergency_url}")
|
puts critical("emergency.php has been found in: #{wp_target.emergency_url}")
|
||||||
end
|
end
|
||||||
|
|
||||||
wp_target.interesting_headers.each do |header|
|
|
||||||
output = info('Interesting header: ')
|
|
||||||
|
|
||||||
if header[1].class == Array
|
|
||||||
header[1].each do |value|
|
|
||||||
puts output + "#{header[0]}: #{value}"
|
|
||||||
end
|
|
||||||
else
|
|
||||||
puts output + "#{header[0]}: #{header[1]}"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if wp_target.multisite?
|
if wp_target.multisite?
|
||||||
puts info('This site seems to be a multisite (http://codex.wordpress.org/Glossary#Multisite)')
|
puts info('This site seems to be a multisite (http://codex.wordpress.org/Glossary#Multisite)')
|
||||||
end
|
end
|
||||||
@@ -299,10 +295,6 @@ def main
|
|||||||
puts info("This site has 'Must Use Plugins' (http://codex.wordpress.org/Must_Use_Plugins)")
|
puts info("This site has 'Must Use Plugins' (http://codex.wordpress.org/Must_Use_Plugins)")
|
||||||
end
|
end
|
||||||
|
|
||||||
if wp_target.registration_enabled?
|
|
||||||
puts warning("Registration is enabled: #{wp_target.registration_url}")
|
|
||||||
end
|
|
||||||
|
|
||||||
if wp_target.has_xml_rpc?
|
if wp_target.has_xml_rpc?
|
||||||
puts info("XML-RPC Interface available under: #{wp_target.xml_rpc_url}")
|
puts info("XML-RPC Interface available under: #{wp_target.xml_rpc_url}")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user