Land #11603, Fail nicely when load aggregator.
commit
582f86b75c
|
@ -5,7 +5,6 @@
|
||||||
#
|
#
|
||||||
# $Revision$
|
# $Revision$
|
||||||
#
|
#
|
||||||
require "metasploit/aggregator"
|
|
||||||
|
|
||||||
module Msf
|
module Msf
|
||||||
Aggregator_yaml = "#{Msf::Config.get_config_root}/aggregator.yaml" # location of the aggregator.yml containing saved aggregator creds
|
Aggregator_yaml = "#{Msf::Config.get_config_root}/aggregator.yaml" # location of the aggregator.yml containing saved aggregator creds
|
||||||
|
@ -499,6 +498,15 @@ module Msf
|
||||||
def initialize(framework, opts)
|
def initialize(framework, opts)
|
||||||
super
|
super
|
||||||
|
|
||||||
|
#
|
||||||
|
# Require the metasploit/aggregator gem, but fail nicely if it's not there.
|
||||||
|
#
|
||||||
|
begin
|
||||||
|
require "metasploit/aggregator"
|
||||||
|
rescue LoadError
|
||||||
|
raise "WARNING: metasploit/aggregator is not avaiable for now."
|
||||||
|
end
|
||||||
|
|
||||||
add_console_dispatcher(AggregatorCommandDispatcher)
|
add_console_dispatcher(AggregatorCommandDispatcher)
|
||||||
print_status("Aggregator interaction has been enabled")
|
print_status("Aggregator interaction has been enabled")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue