Module: Msf::Auxiliary::MultipleTargetHosts
- Included in:
- Scanner, Exploit::Remote::SMB::RelayServer
- Defined in:
- lib/msf/core/auxiliary/multiple_target_hosts.rb
Overview
This module provides methods for modules which intend to handle multiple hosts themselves through some means, e.g. scanners. This circumvents the typical RHOSTS -> RHOST logic offered by the framework.
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/msf/core/auxiliary/multiple_target_hosts.rb', line 19 def check nmod = replicant begin nmod.check_host(datastore['RHOST']) rescue NoMethodError Exploit::CheckCode::Unsupported end end |
#has_check? ⇒ Boolean
15 16 17 |
# File 'lib/msf/core/auxiliary/multiple_target_hosts.rb', line 15 def has_check? respond_to?(:check_host) end |