Adds a --plugins-threshold and --themes-threshold options

This commit is contained in:
erwanlr
2019-07-08 19:47:46 +01:00
parent 3fb5d33333
commit f50680b61f
8 changed files with 44 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ module WPScan
enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug|
found << Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 80))
raise Error::ThemesThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold]
end
found