Class: Msf::RPC::RPC_Base
- Inherits:
-
Object
- Object
- Msf::RPC::RPC_Base
- Defined in:
- lib/msf/core/rpc/v10/rpc_base.rb
Direct Known Subclasses
RPC_Auth, RPC_Console, RPC_Core, RPC_Db, RPC_Health, RPC_Job, RPC_Module, RPC_Plugin, RPC_Session
Instance Attribute Summary collapse
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#job_status_tracker ⇒ Object
Returns the value of attribute job_status_tracker.
-
#service ⇒ Object
Returns the value of attribute service.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
-
#users ⇒ Object
Returns the value of attribute users.
Instance Method Summary collapse
-
#error(code, message) ⇒ void
Raises an Msf::RPC Exception.
-
#initialize(service) ⇒ RPC_Base
constructor
Initializes framework, service, tokens, and users.
Constructor Details
#initialize(service) ⇒ RPC_Base
Initializes framework, service, tokens, and users
return [void]
11 12 13 14 15 16 17 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 11 def initialize(service) self.service = service self.framework = service.framework self.tokens = service.tokens self.users = service.users self.job_status_tracker = service.job_status_tracker end |
Instance Attribute Details
#framework ⇒ Object
Returns the value of attribute framework.
6 7 8 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 6 def framework @framework end |
#job_status_tracker ⇒ Object
Returns the value of attribute job_status_tracker.
6 7 8 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 6 def job_status_tracker @job_status_tracker end |
#service ⇒ Object
Returns the value of attribute service.
6 7 8 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 6 def service @service end |
#tokens ⇒ Object
Returns the value of attribute tokens.
6 7 8 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 6 def tokens @tokens end |
#users ⇒ Object
Returns the value of attribute users.
6 7 8 |
# File 'lib/msf/core/rpc/v10/rpc_base.rb', line 6 def users @users end |