Land #11544, add reregister_tcp/udp_options
commit
5ee43d43d6
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -31,7 +31,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
'License' => MSF_LICENSE
|
||||
)
|
||||
)
|
||||
deregister_options('RHOSTS', 'RPORT')
|
||||
deregister_udp_options
|
||||
end
|
||||
|
||||
def parse_reply(pkt)
|
||||
|
|
|
@ -19,7 +19,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
'License' => MSF_LICENSE
|
||||
)
|
||||
|
||||
deregister_options('Proxies','SSL','RHOST')
|
||||
deregister_udp_options
|
||||
register_options(
|
||||
[
|
||||
Opt::RPORT(5060),
|
||||
|
|
|
@ -22,7 +22,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
'License' => MSF_LICENSE
|
||||
)
|
||||
|
||||
deregister_options('Proxies','SSL','RHOST')
|
||||
deregister_udp_options
|
||||
register_options(
|
||||
[
|
||||
Opt::RPORT(5060),
|
||||
|
|
Loading…
Reference in New Issue