Exception: Msf::Exploit::Remote::HTTP::Gitlab::Error::CsrfError
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- Msf::Exploit::Remote::HTTP::Gitlab::Error::CsrfError
- Defined in:
- lib/msf/core/exploit/remote/http/gitlab/error.rb
Overview
Csrf token error
Instance Attribute Summary collapse
-
#http_status ⇒ Integer?
readonly
A non-successful HTTP status, if present.
Instance Method Summary collapse
-
#initialize(message = 'Could not successfully extract CSRF token', http_status: nil) ⇒ CsrfError
constructor
A new instance of CsrfError.
Constructor Details
#initialize(message = 'Could not successfully extract CSRF token', http_status: nil) ⇒ CsrfError
Returns a new instance of CsrfError.
28 29 30 31 |
# File 'lib/msf/core/exploit/remote/http/gitlab/error.rb', line 28 def initialize( = 'Could not successfully extract CSRF token', http_status: nil) @http_status = http_status super(message: ) end |
Instance Attribute Details
#http_status ⇒ Integer? (readonly)
Returns 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 |