Module: Msf::Module::Network
- Included in:
- Msf::Module
- Defined in:
- lib/msf/core/module/network.rb
Instance Method Summary collapse
-
#comm ⇒ Object
The default communication subsystem for this module.
-
#support_ipv6? ⇒ Boolean
Indicates whether the module supports IPv6.
-
#target_host ⇒ Object
Returns the address of the last target host (rough estimate).
-
#target_port ⇒ Object
Returns the address of the last target port (rough estimate).
Instance Method Details
#comm ⇒ Object
The default communication subsystem for this module. We may need to move this somewhere else.
6 7 8 |
# File 'lib/msf/core/module/network.rb', line 6 def comm Rex::Socket::Comm::Local end |
#support_ipv6? ⇒ Boolean
Indicates whether the module supports IPv6. This is true by default, but certain modules require additional work to be compatible or are hardcoded in terms of application support and should be skipped.
15 16 17 |
# File 'lib/msf/core/module/network.rb', line 15 def support_ipv6? true end |
#target_host ⇒ Object
Returns the address of the last target host (rough estimate)
22 23 24 |
# File 'lib/msf/core/module/network.rb', line 22 def target_host self.respond_to?('rhost') ? rhost : self.datastore['RHOST'] end |
#target_port ⇒ Object
Returns the address of the last target port (rough estimate)
29 30 31 |
# File 'lib/msf/core/module/network.rb', line 29 def target_port self.respond_to?('rport') ? rport : self.datastore['RPORT'] end |