Class: Metasploit::Aggregator::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/metasploit/aggregator.rb

Direct Known Subclasses

Server, ServerProxy

Instance Method Summary collapse

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/metasploit/aggregator.rb', line 21

def available?
  # index for impl
end

#available_addressesObject

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

#cablesObject



35
36
37
# File 'lib/metasploit/aggregator.rb', line 35

def cables
  # index for impl
end

#defaultObject



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

#sessionsObject

returns map of sessions available from the service



31
32
33
# File 'lib/metasploit/aggregator.rb', line 31

def sessions
  # index for impl
end

#versionObject

return the current service version found



26
27
28
# File 'lib/metasploit/aggregator.rb', line 26

def version
  Metasploit::Aggregator::VERSION
end