Class: Msf::Aggregator::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/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



46
47
48
# File 'lib/msf/aggregator.rb', line 46

def add_cable(type, host, port, certificate = nil)
  # index for impl
end

#available?Boolean

return availability status of the service

Returns:

  • (Boolean)


18
19
20
# File 'lib/msf/aggregator.rb', line 18

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)



60
61
62
# File 'lib/msf/aggregator.rb', line 60

def available_addresses
  # index for impl
end

#cablesObject



27
28
29
# File 'lib/msf/aggregator.rb', line 27

def cables
  # index for impl
end

#obtain_session(payload, lhost, lport) ⇒ Object

sets forwarding for a specific session to promote that session for local use, obtained sessions are not reported in getSessions



34
35
36
# File 'lib/msf/aggregator.rb', line 34

def obtain_session(payload, lhost, lport)
  # index for impl
end

#register_default(lhost, lport, payload_list) ⇒ Object



54
55
56
# File 'lib/msf/aggregator.rb', line 54

def register_default(lhost, lport, payload_list)
  # index for impl
end

#release_session(payload) ⇒ Object

parks a session and makes it available in the getSessions



39
40
41
# File 'lib/msf/aggregator.rb', line 39

def release_session(payload)
  # index for impl
end

#remove_cable(host, port) ⇒ Object



50
51
52
# File 'lib/msf/aggregator.rb', line 50

def remove_cable(host, port)
  # index for impl
end

#sessionsObject

returns map of sessions available from the service



23
24
25
# File 'lib/msf/aggregator.rb', line 23

def sessions
  # index for impl
end