diff --git a/plugins/nexpose.rb b/plugins/nexpose.rb index 044f6d176c..a75be0ebf4 100644 --- a/plugins/nexpose.rb +++ b/plugins/nexpose.rb @@ -120,7 +120,7 @@ class Plugin::Nexpose < Msf::Plugin end def cmd_nexpose_scan(*args) - return if not nexpose_verify + opts = Rex::Parser::Arguments.new( "-h" => [ false, "This help menu"], @@ -147,6 +147,7 @@ class Plugin::Nexpose < Msf::Plugin opts.parse(args) do |opt, idx, val| case opt when "-h" + print_line("Usage: nexpose_scan [options] ") print_line(opts.usage) return when "-t" @@ -168,8 +169,16 @@ class Plugin::Nexpose < Msf::Plugin end end + return if not nexpose_verify + opt_ranges = opt_ranges.join(",") + if(opt_ranges.strip.empty?) + print_line("Usage: nexpose_scan [options] ") + print_line(opts.usage) + return + end + if(opt_verbose) print_status("Creating a new scan using template #{opt_template} and #{opt_maxaddrs} concurrent IPs against #{opt_ranges}") end