Skip to content

Commit cc33566

Browse files
committed
Land rapid7#4265, @shuckins-r7 fix for RPORT error on UDP sweep.
2 parents 3a99f7f + 2aeedb1 commit cc33566

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)