Class: Msf::Exploit::Remote::Kerberos::Ticket::Storage::Base
- Inherits:
-
Object
- Object
- Msf::Exploit::Remote::Kerberos::Ticket::Storage::Base
- Extended by:
- Forwardable
- Includes:
- Auxiliary::Report
- Defined in:
- lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb
Instance Attribute Summary collapse
-
#framework ⇒ Object
readonly
Returns the value of attribute framework.
-
#framework_module ⇒ Object
readonly
Returns the value of attribute framework_module.
Instance Method Summary collapse
-
#activate_ccache(ids) ⇒ Array<StoredTicket>
Mark ccache(s) as active.
-
#deactivate_ccache(ids) ⇒ Array<StoredTicket>
Mark ccache(s) as inactive.
-
#delete_tickets(options = {}) ⇒ Array<StoredTicket>
Delete tickets matching the options query.
-
#initialize(framework: nil, framework_module: nil) ⇒ Base
constructor
A new instance of Base.
-
#load_credential(options = {}) ⇒ Rex::Proto::Kerberos::CredentialCache::Krb5CcacheCredential?
Load a stored credential object that is suitable for authentication.
-
#store_ccache(ccache, options = {}) ⇒ Hash
Store the specified object.
-
#tickets(options = {}, &block) ⇒ Array<StoredTicket>
Get stored tickets matching the options query.
-
#workspace ⇒ String
The name of the workspace in which to operate.
Methods included from Auxiliary::Report
#active_db?, #create_cracked_credential, #create_credential, #create_credential_and_login, #create_credential_login, #db, #db_warning_given?, #get_client, #get_host, #inside_workspace_boundary?, #invalidate_login, #mytask, #myworkspace, #myworkspace_id, #report_auth_info, #report_client, #report_exploit, #report_host, #report_loot, #report_note, #report_service, #report_vuln, #report_web_form, #report_web_page, #report_web_site, #report_web_vuln, #store_cred, #store_local, #store_loot
Methods included from Metasploit::Framework::Require
optionally, optionally_active_record_railtie, optionally_include_metasploit_credential_creation, #optionally_include_metasploit_credential_creation, optionally_require_metasploit_db_gem_engines
Constructor Details
#initialize(framework: nil, framework_module: nil) ⇒ Base
Returns a new instance of Base.
14 15 16 17 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 14 def initialize(framework: nil, framework_module: nil) @framework = framework || framework_module&.framework @framework_module = framework_module end |
Instance Attribute Details
#framework ⇒ Object (readonly)
Returns the value of attribute framework.
8 9 10 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 8 def framework @framework end |
#framework_module ⇒ Object (readonly)
Returns the value of attribute framework_module.
12 13 14 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 12 def framework_module @framework_module end |
Instance Method Details
#activate_ccache(ids) ⇒ Array<StoredTicket>
Mark ccache(s) as active
76 77 78 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 76 def activate_ccache(ids) [] end |
#deactivate_ccache(ids) ⇒ Array<StoredTicket>
Mark ccache(s) as inactive
68 69 70 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 68 def deactivate_ccache(ids) [] end |
#delete_tickets(options = {}) ⇒ Array<StoredTicket>
Delete tickets matching the options query.
24 25 26 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 24 def delete_tickets( = {}) [] end |
#load_credential(options = {}) ⇒ Rex::Proto::Kerberos::CredentialCache::Krb5CcacheCredential?
Load a stored credential object that is suitable for authentication.
49 50 51 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 49 def load_credential( = {}) nil end |
#store_ccache(ccache, options = {}) ⇒ Hash
Store the specified object.
60 61 62 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 60 def store_ccache(ccache, = {}) {} end |
#tickets(options = {}, &block) ⇒ Array<StoredTicket>
Get stored tickets matching the options query.
40 41 42 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 40 def tickets( = {}, &block) [] end |
#workspace ⇒ String
Returns The name of the workspace in which to operate.
81 82 83 84 85 86 87 |
# File 'lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb', line 81 def workspace if @framework_module return @framework_module.workspace elsif @framework&.db&.active return @framework.db.workspace&.name end end |