add RHOSTS common option to nmap and scanner mixins

GSoC/Meterpreter_Web_Console
Brent Cook 2018-05-24 21:25:58 -05:00
parent c18c91ebcd
commit 770b9fa209
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def initialize(info = {})
super super
register_options([ register_options([
OptAddressRange.new('RHOSTS', [ true, "The target address range or CIDR identifier"]), Opt::RHOSTS,
OptBool.new('NMAP_VERBOSE', [ false, 'Display nmap output', true]), OptBool.new('NMAP_VERBOSE', [ false, 'Display nmap output', true]),
OptString.new('RPORTS', [ false, 'Ports to target']), # RPORT supersedes RPORTS OptString.new('RPORTS', [ false, 'Ports to target']), # RPORT supersedes RPORTS
], Auxiliary::Nmap) ], Auxiliary::Nmap)

View File

@ -17,6 +17,7 @@ def initialize(info = {})
super super
register_options([ register_options([
Opt::RHOSTS,
OptInt.new('THREADS', [ true, "The number of concurrent threads", 1 ] ) OptInt.new('THREADS', [ true, "The number of concurrent threads", 1 ] )
], Auxiliary::Scanner) ], Auxiliary::Scanner)