output path
This commit is contained in:
@@ -11,6 +11,11 @@ class WpTarget < WebSite
|
|||||||
response.body[%r{Fatal error}i] ? true : false
|
response.body[%r{Fatal error}i] ? true : false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def full_path_disclosure_data
|
||||||
|
return nil unless has_full_path_disclosure?
|
||||||
|
Browser.get(full_path_disclosure_url()).body[%r{<b>([^<]+\.php)</b>}, 1]
|
||||||
|
end
|
||||||
|
|
||||||
# @return [ String ]
|
# @return [ String ]
|
||||||
def full_path_disclosure_url
|
def full_path_disclosure_url
|
||||||
@uri.merge('wp-includes/rss-functions.php').to_s
|
@uri.merge('wp-includes/rss-functions.php').to_s
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ def main
|
|||||||
end
|
end
|
||||||
|
|
||||||
if wp_target.has_full_path_disclosure?
|
if wp_target.has_full_path_disclosure?
|
||||||
puts warning("Full Path Disclosure (FPD) in: '#{wp_target.full_path_disclosure_url}'")
|
puts warning("Full Path Disclosure (FPD) in '#{wp_target.full_path_disclosure_url}': #{wp_target.full_path_disclosure_data}")
|
||||||
end
|
end
|
||||||
|
|
||||||
if wp_target.has_debug_log?
|
if wp_target.has_debug_log?
|
||||||
|
|||||||
Reference in New Issue
Block a user