Exception: Msf::Exploit::Remote::HTTP::Gitlab::Error::CsrfError

Inherits:
ClientError
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/http/gitlab/error.rb

Overview

Csrf token error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Could not successfully extract CSRF token', http_status: nil) ⇒ CsrfError

Returns a new instance of CsrfError.

Parameters:

  • message (String) (defaults to: 'Could not successfully extract CSRF token') —

    the extraction failure

  • http_status (Integer, nil) (defaults to: nil) —

    a non-successful HTTP status, if present



28
29
30
31
# File 'lib/msf/core/exploit/remote/http/gitlab/error.rb', line 28

def initialize(message = 'Could not successfully extract CSRF token', http_status: nil)
  @http_status = http_status
  super(message: message)
end

Instance Attribute Details

#http_status ⇒ Integer? (readonly)

Returns a non-successful HTTP status, if present.

Returns:

  • (Integer, nil) —

    a non-successful HTTP status, if present



24
25
26
# File 'lib/msf/core/exploit/remote/http/gitlab/error.rb', line 24

def http_status
  @http_status
end