Class: Msf::RPC::RPC_Health

Inherits:
RPC_Base show all
Defined in:
lib/msf/core/rpc/v10/rpc_health.rb

Instance Attribute Summary

Attributes inherited from RPC_Base

#framework, #job_status_tracker, #service, #tokens, #users

Instance Method Summary collapse

Methods inherited from RPC_Base

#error, #initialize

Constructor Details

This class inherits a constructor from Msf::RPC::RPC_Base

Instance Method Details

#rpc_check_noauthHash

Returns whether the service is currently healthy and ready to accept requests. This endpoint is not authenticated.

Examples:

Here's how you would use this from the client:

rpc.call('health.check')

Returns:

  • (Hash)


12
13
14
# File 'lib/msf/core/rpc/v10/rpc_health.rb', line 12

def rpc_check_noauth
  Msf::RPC::Health.check(framework)
end