Skip to content

Commit 79b2b5e

Browse files
committed
RPORT is required by UDPScanner; deregister instead
1 parent 58cc8c9 commit 79b2b5e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/msf/core/auxiliary/udp_scanner.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def initialize(info = {})
2121

2222
register_options(
2323
[
24+
Opt::RPORT,
2425
OptInt.new('BATCHSIZE', [true, 'The number of hosts to probe in each set', 256]),
2526
OptInt.new('THREADS', [true, "The number of concurrent threads", 10])
2627
], self.class)

modules/auxiliary/scanner/discovery/udp_sweep.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ def initialize
2525
OptBool.new('RANDOMIZE_PORTS', [false, 'Randomize the order the ports are probed', true])
2626
], self.class)
2727

28+
# RPORT is required by UDPScanner but not used in this module since it
29+
# works with multiple ports.
30+
# TODO: update this module to simply use Scanner or update UDPScanner to support
31+
# multiple ports.
32+
deregister_options('RPORT')
33+
2834
# Intialize the probes array
2935
@probes = []
3036

0 commit comments

Comments
 (0)