Skip to content

Commit 2aeedb1

Browse files
committed
Merge pull request #1 from jhart-r7/landing-4265-jhart
This is a great intermediate approach, thanks @jhart-r7 ! Will verify Pro and msfconsole cases momentarily.
2 parents 58cc8c9 + 79b2b5e commit 2aeedb1

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)