Add RHOSTS general option to Opt module

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

View File

@ -40,8 +40,12 @@ module Msf
Msf::OptString.new(__method__.to_s, [ required, desc, default ])
end
# @return [OptAddress]
def self.RHOST(default=nil, required=true, desc="The target address")
# @return [OptAddressRange]
def self.RHOSTS(default=nil, required=true, desc="The target address range or CIDR identifier")
Msf::OptAddressRange.new('RHOSTS', [ required, desc, default ])
end
def self.RHOST(default=nil, required=true, desc="The target address range or CIDR identifier")
Msf::OptAddressRange.new('RHOSTS', [ required, desc, default ], aliases: [ 'RHOST' ])
end
@ -107,6 +111,7 @@ module Msf
LPORT = LPORT()
Proxies = Proxies()
RHOST = RHOST()
RHOSTS = RHOSTS()
RPORT = RPORT()
SSLVersion = SSLVersion()
end