Displays status code for KnownLocation finders
This commit is contained in:
@@ -19,8 +19,12 @@ module WPScan
|
|||||||
def aggressive(opts = {})
|
def aggressive(opts = {})
|
||||||
found = []
|
found = []
|
||||||
|
|
||||||
enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug|
|
enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |res, slug|
|
||||||
found << Model::Plugin.new(slug, target, opts.merge(found_by: found_by, confidence: 80))
|
finding_opts = opts.merge(found_by: found_by,
|
||||||
|
confidence: 80,
|
||||||
|
interesting_entries: ["#{res.effective_url}, status: #{res.code}"])
|
||||||
|
|
||||||
|
found << Model::Plugin.new(slug, target, finding_opts)
|
||||||
|
|
||||||
raise Error::PluginsThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold]
|
raise Error::PluginsThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold]
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -19,8 +19,12 @@ module WPScan
|
|||||||
def aggressive(opts = {})
|
def aggressive(opts = {})
|
||||||
found = []
|
found = []
|
||||||
|
|
||||||
enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug|
|
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))
|
finding_opts = opts.merge(found_by: found_by,
|
||||||
|
confidence: 80,
|
||||||
|
interesting_entries: ["#{res.effective_url}, status: #{res.code}"])
|
||||||
|
|
||||||
|
found << Model::Theme.new(slug, target, finding_opts)
|
||||||
|
|
||||||
raise Error::ThemesThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold]
|
raise Error::ThemesThresholdReached if opts[:threshold].positive? && found.size >= opts[:threshold]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user