simplify check

GSoC/Meterpreter_Web_Console
Brent Cook 2019-02-25 21:59:54 -06:00
parent 0b4d67a978
commit 287667d4f7
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Auxiliary
jobify = true jobify = true
end end
unless mod.datastore['RHOSTS'].nil? if mod.datastore['RHOSTS']
rhosts_range = Rex::Socket::RangeWalker.new(mod.datastore['RHOSTS']) rhosts_range = Rex::Socket::RangeWalker.new(mod.datastore['RHOSTS'])
unless rhosts_range && rhosts_range.length unless rhosts_range && rhosts_range.length
print_error("Auxiliary failed: option RHOSTS failed to validate.") print_error("Auxiliary failed: option RHOSTS failed to validate.")