Check argument

bug/bundler_fix
sinn3r 2014-01-25 20:10:22 -06:00
parent cc4dea7d49
commit 3bb17dad72
1 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,10 @@ module ModuleCommandDispatcher
hosts = Rex::Socket::RangeWalker.new(ip_range_arg)
begin
if hosts.ranges.blank?
if hosts.ranges.blank? and mod.datastore['RHOST'].blank?
print_error("No host specified")
return
elsif hosts.ranges.blank?
# Check a single rhost
check_simple
else