Class: Metasploit::Aggregator::Service
- Inherits:
-
Object
- Object
- Metasploit::Aggregator::Service
- Defined in:
- lib/metasploit/aggregator.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#add_cable(type, host, port, certificate = nil) ⇒ Object
start a listening port maintained on the service connections are forwarded to any registered default TODO: may want to require a type here for future proof of api.
-
#available? ⇒ Boolean
return availability status of the service.
-
#available_addresses ⇒ Object
returns list of IP addressed available to the service TODO: consider also reporting “used” ports (may not be needed).
- #cables ⇒ Object
- #default ⇒ Object
-
#obtain_session(payload, uuid) ⇒ Object
sets forwarding for a specific session to promote that session for local use, obtained sessions are not reported in getSessions.
- #register_default(uuid, payload_list) ⇒ Object
-
#register_response_channel(requester) ⇒ Object
register the object to pass request from cables to.
-
#release_session(payload) ⇒ Object
parks a session and makes it available in the getSessions.
- #remove_cable(host, port) ⇒ Object
-
#session_details(payload) ⇒ Object
return any extended details for the payload requested.
-
#sessions ⇒ Object
returns map of sessions available from the service.
-
#version ⇒ Object
return the current service version found.
Instance Method Details
#add_cable(type, host, port, certificate = nil) ⇒ Object
start a listening port maintained on the service connections are forwarded to any registered default TODO: may want to require a type here for future proof of api
59 60 61 |
# File 'lib/metasploit/aggregator.rb', line 59 def add_cable(type, host, port, certificate = nil) # index for impl end |
#available? ⇒ Boolean
return availability status of the service
21 22 23 |
# File 'lib/metasploit/aggregator.rb', line 21 def available? # index for impl end |
#available_addresses ⇒ Object
returns list of IP addressed available to the service TODO: consider also reporting “used” ports (may not be needed)
77 78 79 |
# File 'lib/metasploit/aggregator.rb', line 77 def available_addresses # index for impl end |
#cables ⇒ Object
35 36 37 |
# File 'lib/metasploit/aggregator.rb', line 35 def cables # index for impl end |
#default ⇒ Object
71 72 73 |
# File 'lib/metasploit/aggregator.rb', line 71 def default # index for impl end |
#obtain_session(payload, uuid) ⇒ Object
sets forwarding for a specific session to promote that session for local use, obtained sessions are not reported in getSessions
42 43 44 |
# File 'lib/metasploit/aggregator.rb', line 42 def obtain_session(payload, uuid) # index for impl end |
#register_default(uuid, payload_list) ⇒ Object
67 68 69 |
# File 'lib/metasploit/aggregator.rb', line 67 def register_default(uuid, payload_list) # index for impl end |
#register_response_channel(requester) ⇒ Object
register the object to pass request from cables to
82 83 84 |
# File 'lib/metasploit/aggregator.rb', line 82 def register_response_channel(requester) end |
#release_session(payload) ⇒ Object
parks a session and makes it available in the getSessions
47 48 49 |
# File 'lib/metasploit/aggregator.rb', line 47 def release_session(payload) # index for impl end |
#remove_cable(host, port) ⇒ Object
63 64 65 |
# File 'lib/metasploit/aggregator.rb', line 63 def remove_cable(host, port) # index for impl end |
#session_details(payload) ⇒ Object
return any extended details for the payload requested
52 53 54 |
# File 'lib/metasploit/aggregator.rb', line 52 def session_details(payload) end |
#sessions ⇒ Object
returns map of sessions available from the service
31 32 33 |
# File 'lib/metasploit/aggregator.rb', line 31 def sessions # index for impl end |
#version ⇒ Object
return the current service version found
26 27 28 |
# File 'lib/metasploit/aggregator.rb', line 26 def version Metasploit::Aggregator::VERSION end |