Class | HostMap::Engine |
In: |
lib/core.rb
|
Parent: | Object |
host_discovery | [R] | Host discovery instance. |
opts | [R] | Configuration options |
plugins | [R] | The engine instance‘s plugin manager. |
Creates an instance of the hostmap engine.
# File lib/core.rb, line 37 def initialize(opts={}) # Load logger HostMap::HMLogger.new(opts) # If maltego output is selected never show anything if opts['printmaltego'] $LOG.level = Logger::ERROR end $LOG.debug "Initializing hostmap engine." # Validate options begin IPAddr.new(opts['target']) rescue raise HostMap::Exception::TargetError, "isn't an IP address." end self.opts = opts self.plugins = HostMap::Managers::PluginManager.new(self) end