add deregister_tcp/udp_options

master
Brent Cook 2019-03-05 04:43:37 -06:00
parent 1bf93ab1bc
commit 172a984d60
7 changed files with 14 additions and 6 deletions

View File

@ -82,6 +82,10 @@ module Exploit::Remote::Tcp
)
end
def deregister_tcp_options
deregister_options('RHOST', 'RPORT')
end
#
# Establishes a TCP connection to the specified RHOST/RPORT
#

View File

@ -29,6 +29,10 @@ module Exploit::Remote::Udp
)
end
def deregister_udp_options
deregister_options('RHOST', 'RPORT')
end
#
# Creates a UDP socket for communicating with a remote host
#

View File

@ -23,14 +23,14 @@ class MetasploitModule < Msf::Auxiliary
'Author' => [ 'sinn3r' ]
))
deregister_udp_options
register_options(
[
OptString.new("MAC", [true, 'Specify a MAC address', '00:90:27:85:cf:01']),
OptString.new("PASSWORD", [false, 'Specify a four or six-byte password']),
OptBool.new("IPV6", [false, 'Use IPv6 broadcast', false])
])
deregister_options('RHOST', 'RPORT')
end
#

View File

@ -28,7 +28,7 @@ class MetasploitModule < Msf::Auxiliary
'License' => MSF_LICENSE
)
deregister_options('RHOST', 'RPORT')
deregister_tcp_options
end
# Obtain information about a single host

View File

@ -31,7 +31,7 @@ class MetasploitModule < Msf::Auxiliary
'License' => MSF_LICENSE
)
)
deregister_options('RHOSTS', 'RPORT')
deregister_udp_options
end
def parse_reply(pkt)

View File

@ -19,7 +19,7 @@ class MetasploitModule < Msf::Auxiliary
'License' => MSF_LICENSE
)
deregister_options('Proxies','SSL','RHOST')
deregister_udp_options
register_options(
[
Opt::RPORT(5060),

View File

@ -22,7 +22,7 @@ class MetasploitModule < Msf::Auxiliary
'License' => MSF_LICENSE
)
deregister_options('Proxies','SSL','RHOST')
deregister_udp_options
register_options(
[
Opt::RPORT(5060),