or something equivalent... if enum_dcs returns nil
parent
c30b2de35b
commit
5bba81b738
|
@ -109,6 +109,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
domains.each do |domain|
|
||||
dcs = enum_dcs(domain)
|
||||
dcs = [] if dcs.nil?
|
||||
|
||||
# Add registry cached DC for the test case where no DC is enumerated on the network.
|
||||
if !cached_dc.nil? && (cached_dc.include? domain)
|
||||
|
|
Loading…
Reference in New Issue