Skip to content
Permalink
Browse files

Land #11544, add reregister_tcp/udp_options

  • Loading branch information...
busterb committed Mar 11, 2019
2 parents 8112978 + 172a984 commit 5ee43d43d67d1c64f4f4d238927047711fe77466
@@ -82,6 +82,10 @@ def initialize(info = {})
)
end

def deregister_tcp_options
deregister_options('RHOST', 'RPORT')
end

#
# Establishes a TCP connection to the specified RHOST/RPORT
#
@@ -29,6 +29,10 @@ def initialize(info = {})
)
end

def deregister_udp_options
deregister_options('RHOST', 'RPORT')
end

#
# Creates a UDP socket for communicating with a remote host
#
@@ -23,14 +23,14 @@ def initialize(info = {})
'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 @@ def initialize
'License' => MSF_LICENSE
)

deregister_options('RHOST', 'RPORT')
deregister_tcp_options
end

# Obtain information about a single host
@@ -31,7 +31,7 @@ def initialize(info = {})
'License' => MSF_LICENSE
)
)
deregister_options('RHOSTS', 'RPORT')
deregister_udp_options
end

def parse_reply(pkt)
@@ -19,7 +19,7 @@ def initialize
'License' => MSF_LICENSE
)

deregister_options('Proxies','SSL','RHOST')
deregister_udp_options
register_options(
[
Opt::RPORT(5060),
@@ -22,7 +22,7 @@ def initialize
'License' => MSF_LICENSE
)

deregister_options('Proxies','SSL','RHOST')
deregister_udp_options
register_options(
[
Opt::RPORT(5060),

0 comments on commit 5ee43d4

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.