Skip to content

Commit

Permalink
Fixes #1330
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Apr 7, 2019
1 parent c8eb811 commit 8145a4a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/finders/users/author_id_brute_forcing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module Users
class AuthorIdBruteForcing < CMSScanner::Finders::Finder
include CMSScanner::Finders::Finder::Enumerator

# @return [ Array<Integer> ]
def valid_response_codes
@valid_response_codes ||= [200, 301, 302]
end

# @param [ Hash ] opts
# @option opts [ Range ] :range Mandatory
#
Expand All @@ -15,7 +20,7 @@ def aggressive(opts = {})
found = []
found_by_msg = 'Author Id Brute Forcing - %s (Aggressive Detection)'

enumerate(target_urls(opts), opts) do |res, id|
enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |res, id|
username, found_by, confidence = potential_username(res)

next unless username
Expand Down Expand Up @@ -49,7 +54,7 @@ def create_progress_bar(opts = {})
super(opts.merge(title: ' Brute Forcing Author IDs -'))
end

def request_params
def full_request_params
{ followlocation: true }
end

Expand Down

0 comments on commit 8145a4a

Please sign in to comment.