Reduces time to detect non WP sites when there are a lof of links in pages

This commit is contained in:
erwanlr
2020-02-12 19:50:00 +00:00
parent 8729c68e22
commit 7d2b8a2a8b
2 changed files with 4 additions and 5 deletions

View File

@@ -18,9 +18,7 @@ module WPScan
target.content_dir = ParsedCli.wp_content_dir if ParsedCli.wp_content_dir
target.plugins_dir = ParsedCli.wp_plugins_dir if ParsedCli.wp_plugins_dir
return if target.content_dir
raise Error::WpContentDirNotDetected
raise Error::WpContentDirNotDetected unless target.content_dir
end
end
end