class CMSScanner::Error::AccessForbidden

Access Forbidden Error

Attributes

random_user_agent_used[R]

Public Class Methods

new(random_user_agent_used) click to toggle source

@param [ Boolean ] random_user_agent_used

# File lib/cms_scanner/errors/http.rb, line 41
def initialize(random_user_agent_used)
  @random_user_agent_used = random_user_agent_used
end

Public Instance Methods

to_s() click to toggle source
# File lib/cms_scanner/errors/http.rb, line 45
def to_s
  msg = if random_user_agent_used
          'Well... --random-user-agent didn\'t work, use --force to skip this check if needed.'
        else
          'Please re-try with --random-user-agent'
        end

  "The target is responding with a 403, this might be due to a WAF. #{msg}"
end