Add RHOSTS general option to Opt module
parent
a08aa09b96
commit
c18c91ebcd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue