| Class | Rex::Socket::SwitchBoard |
| In: |
lib/rex/socket/switch_board.rb
|
| Parent: | Object |
This class provides a global routing table that associates subnets with Comm classes. Comm classes are used to instantiate objects that are tied to remote network entities. For example, the Local Comm class is used to building network connections directly from the local machine whereas, for instance, a Meterpreter Comm would build a local socket pair that is associated with a connection established by a remote entity. This can be seen as a uniform way of communicating with hosts through arbitrary channels.
Adds a route to the switch board routing table using the supplied Comm instance.
Removes a route from the switch board routing table for the supplied subnet routing through the supplied Comm instance.