land #8069, a warning when setting rhost in rhosts modules

bug/bundler_fix
h00die 2017-03-07 18:42:38 -05:00
commit 95683715e0
No known key found for this signature in database
GPG Key ID: C5A9D25D1457C971
1 changed files with 10 additions and 0 deletions

View File

@ -1531,6 +1531,16 @@ class Core
end
end
# Warn when setting RHOST option for module which expects RHOSTS
if args.first.upcase.eql?('RHOST')
mod = active_module
unless mod.nil?
if !mod.options.include?('RHOST') && mod.options.include?('RHOSTS')
print_warning("RHOST is not a valid option for this module. Did you mean RHOSTS?")
end
end
end
# Set the supplied name to the supplied value
name = args[0]
value = args[1, args.length-1].join(' ')